[html-formfu] Using DBIC Validation in FormFu

Serge Zaschipas serge at uacoders.com
Thu Oct 29 08:01:15 GMT 2009


2009/10/27 Carl Franks <fireartist at gmail.com>

> Hi Sergiy,
>
> It would probably be possible to provide a compatible check() method,
> but I'm not sure how far it would get you.
>
> As far as FormFu is concerned, a single form doesn't have to represent
> just a single database row, but can also represent related rows or
> resultsets.
>
> Where would your validation profile be defined?
> DBIx::Class::Validation expects each resultsource class to provide a
> validation_profile() method which provides the profile.
> Would you want that to be shared between DBIx::Class::Validation and
> HTML::FormFu ?
>
> If you can give an example of how you might expect it all to fit
> together, I could probably give a better answer of whether FormFu
> would be a good choice for this.
>
> Cheers,
> Carl
>
>
> 2009/10/26 Serge Zaschipas <serge at uacoders.com>:
> > Hi,
> > I use Catalyst + DBIx + FormFu
> > I just porting relatively big application with lot of tables to Catalys=
t.
> > I need make validations on model side (very complex business logic which
> > must be implemented on model level).
> > So question is: Is there a native way to use FormFu with
> > DBIx::Class::Validation?
> > I tried HTML::FormFu::Validator but seems $form->submitted_and_valid()
> > validate FormFu constraints only + validate with
> > HTML::FormFu::Validator::validate_value()
> >
> > Best Regards
> > Sergiy Zaschipas
> >
> > _______________________________________________
> > HTML-FormFu mailing list
> > HTML-FormFu at lists.scsys.co.uk
> > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
> >
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20091029/b1=
cb9cdc/attachment.htm


More information about the HTML-FormFu mailing list