[Html-widget] DBIx::Class::FormFu
Carl Franks
fireartist at gmail.com
Thu Feb 15 10:54:44 GMT 2007
Another formfu update!
I've created a DBIx-Class extension, available in svn here:
http://dbix-class-formfu.googlecode.com/svn/
The only noticable usage differences from dbix-class-htmlwidget are:
* the method-names are now fill_formfu_values() and populate_from_formfu()
* both methods expect the $result object as an argument
Code wise, it's a lot simpler, as formfu provides the field-level
logic such as how to handle checkboxes, select menus etc, so the dbic
extension doesn't need any field-specific code at all.
The test files include simple instructions to create the sqlite
database - otherwise tests are skipped.
The most notable recent update to formfu is that $form->result() now
accepts a hash-ref as an alternative to a query object.
This helps for using formfu as a validator for arbitrary data, and
will also help to reduce the code in the test suite.
Cheers,
Carl
More information about the Html-widget
mailing list