[Catalyst] C:P::FormValidator::Simple and C:P:FillInForm

Bernhard Graf catalyst at augensalat.de
Sun Mar 19 16:03:58 CET 2006


I just wanted to give Catalyst::Plugin::FormValidator::Simple a try, but 
then I regcognized that it sources Catalyst::Plugin::FormValidator (and 
of course Data::FormValidator) just to make it play with 
Catalyst::Plugin::FillInForm. That's ugly!

Could we please change Catalyst::Plugin::FillInForm in a way that lets 
it work with both FormValidator plugins? For example instead of saying:
    if ( $c->isa('Catalyst::Plugin::FormValidator') ) {
        $c->fillform
            if $c->form->has_missing
    [...]
better
    if ( my $form = eval { $c->form } ) {
        $c->fillform
            if $form->has_missing
    [...]

Kind regards
-- 
Bernhard Graf



More information about the Catalyst mailing list