[html-formfu] Populate form using a complex hashref?

Moritz Onken onken at houseofdesign.de
Fri Feb 27 14:57:38 GMT 2009


Am 27.02.2009 um 15:41 schrieb Moritz Onken:

>
> Am 27.02.2009 um 15:38 schrieb Carl Franks:
>
>> 2009/2/27 Moritz Onken <onken at houseofdesign.de>:
>>> Yes it's ExtJS stuff. I need hashrefs to feed a JSON encoder. I'm  
>>> not sure
>>> yet how it should be implemented. But I think this is a good start.
>>>
>>> I attached a patch which adds the functionality to  
>>> default_values(). Test
>>> t/form/default_values.t modified.
>>
>> Do you think you'll write the new model class?
>> If so, I'd probably rather not also change  
>> HTML::FormFu::default_values().
>>
>> btw, I prefer to try to avoid any kind of isa() logic - look instead
>> at methods such as:
>>   is_repeatable()
>>   is_block()
>>   is_field()
>
> Oh, didn't know of these. If you prefer I'll write a Model class.
>
> moritz

Am I correct that $element->isa('HTML::FormFu::Element::Multi') ==  
$element->is_field && $element->is_block?



More information about the HTML-FormFu mailing list