Am 27.02.2009 um 12:10 schrieb Carl Franks:

2009/2/27 Moritz Onken <on...@houseofdesign.de>:
Hi,

is it possible to populate a form with data using a complex hashref in
->process()?

I'd like to fill a form with data like this:

{user => "test", addresses => [{address => "somwhere"},{address =>
"somewhere else"}]}

where "addresses" is a repeatable block.

No.
If this were added, it should be to default_values(), not process().
Passing a hash-ref to process() is just an easy way to fake a query object.

Carl


Ok, so I'll try to create a HTML::FormFu::Model::HashRef.

What do you think?


Moritz

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to