[html-formfu] How to best pass the resultset object to DBIC validator callbacks?

Dan Dascalescu ddascalescu+formfu at gmail.com
Wed Mar 11 10:37:53 GMT 2009


> Instead of returning 0 on error, do:
>
>    die HTML::FormFu::Exception::Validator->new({
>        message => 'foo',
>    });
>
> This won't modify the validator's message, only that specific error's.
> Hope that's what you're after.

That worked great. I committed the solution in this thread as a best
practice for HTML::FormFu::Validator (revision 1365).

HTH,
Dan



More information about the HTML-FormFu mailing list