[html-formfu] Options from model?

Zbigniew Lukasiak zzbbyy at gmail.com
Fri Feb 8 13:47:27 GMT 2008


On Feb 8, 2008 2:44 PM, Andreas Marienborg <omega at palle.net> wrote:
>
>
> On Feb 8, 2008, at 2:35 PM, Zbigniew Lukasiak wrote:
>
> > 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.
>
> Where can I read how to configure ut to get my options?

I think you could look into the test cases - they are quite good examples.

Z.

>
>
>
> - andreas
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.rawmode.org
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>



-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/



More information about the HTML-FormFu mailing list