[Catalyst] Rails-like form helpers

Andreas Marienborg omega at palle.net
Thu Sep 21 11:41:18 CEST 2006


On 21. sep. 2006, at 11.25, Jon Warbrick wrote:

> On Wed, 20 Sep 2006, Ash Berlin wrote:
>
>> Maybe look at FormBuilder. (?)
>
> Definitely a possibility, but I haven't got my head around it yet...
>
>> Also suggest a situation that is "complex then solutions like  
>> HTMLWidget
>> can conveniently cope with" and I'll tell you if it is (or will be -
>> refactor is coming)
>
> There is also the issue that a complex form it may need careful manual
> layout of the various controls to make it usable. As I see it this is
> something for the designer to do, working in the relevant templates,
> whereas with HTMLWidget at least the ordering and grouping, and to  
> some
> extent the layout, is defined in the model class. I accept there is  
> much
> that can be done about this with CSS, but I also suspect that there  
> are
> some things that can't.


You dont need to use HTML::Widgets as_xml method to render your form  
you know. You can get each field and place them however you want, or  
write your own HTML for that matter.

HTML::Widget doesnt know what posted to it, so you dont need it to be  
the HTML it would generate, although the names of the fields must  
match ofc.

andreas





More information about the Catalyst mailing list