[Catalyst] Using multiple Data::FormValidator profiles

Will Hawes info at whawes.co.uk
Tue Nov 22 14:03:02 CET 2005


I have separate CDBI classes for user and address details, each with its 
own Data::FormValidator profile. I need to collect details for both 
classes using a single form, which naturally needs to do error checking 
and repopulation after failed submission.

This is all straightforward, but currently I use the FillInForm plugin 
for these tasks and have found it can only cope with a single DFV 
profile via $c->form.

More recent releases of Data::FormValidator support multiple profiles:

   Data::FormValidator->new( user_profile => ..., address_profile => ...)

I'm thinking it might be useful if the FillInForm plugin was updated to 
support @$c->forms or %$c->forms rather than just $c->form. Happy to 
patch it if necessary, but I'd like to know what others think.




More information about the Catalyst mailing list