[html-formfu] HTML::FormFu::Element::DBIC::Select for review

Zbigniew Lukasiak zzbbyy at gmail.com
Thu Sep 13 16:25:19 GMT 2007


When a form was submitted (and has errors) you don't load the values
from the DB to it - you load what you have in the CGI parameters - so
that the user can correct it.  So you cannot just add the creation of
options to the DBIx::Class::HTML::FormFu  fill_formfu_values method
because it would not be called in that case.

There are two options:

1. You create the options at the load_config_file - together with all
the other stuff (via a callback? - I don't know FormFu enough)

2. You create the options with a separate method that should always be
called after load_config_file (but before process)


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



More information about the HTML-FormFu mailing list