[html-formfu] Options from model?

Zbigniew Lukasiak zzbbyy at gmail.com
Fri Feb 8 13:35:59 GMT 2008


On Feb 8, 2008 2:28 PM, Andreas Marienborg <omega at palle.net> wrote:
> Hello.
>
> I have a DBIC-based schema, which I want to formfuify.
>
> I have migrated my form to config-files, and that seems to work
> nicely, but I am having some trouble with populating my select-boxes
> with options.
>
> I looked at the source of HTML::FormFu::Model::DBIC, and it had an
> options_from_model method, but it only returns them. Should I manually
> set them on the right element, or is there some way to automate it
> that I just haven't found?

It's called at process time (and more precisely in the post_process
method on _Group object).

Don't ask me why.


--
Zbigniew
http://perlalchemy.blogspot.com/



More information about the HTML-FormFu mailing list