Re: [html-formfu] adding constraints dynamically

2009-08-18 Thread Carl Franks
2009/8/15 Steve Rippl : > Lastly, is it possible to and/or constraints?  i.e. "value in range 1-5 || > value in range 10-20" etc. Hi Steve, I'd generally create a new constraint class, so it can be loaded via config files, as I avoid putting any form generation code in my Controller classes. As y

Re: [html-formfu] adding constraints dynamically

2009-08-15 Thread Moritz Onken
Am 15.08.2009 um 05:47 schrieb Steve Rippl: Hi, I have a Catalyst app with large dynamic forms, most of which gets built programatically with things like ... my $element = $form->element( Text => $form_id ); $element->name($form_id); $element->id($form_id); ... $element->add_attributes( si

[html-formfu] adding constraints dynamically

2009-08-14 Thread Steve Rippl
Hi, I have a Catalyst app with large dynamic forms, most of which gets built programatically with things like ... my $element = $form->element( Text => $form_id ); $element->name($form_id); $element->id($form_id); ... $element->add_attributes( size => $size, maxlength => $size ); ... etc etc..