Hi Sergiy! I've extended Catalyst::Controller::DBIC::API::Base to also handle errors coming from DBIx::Class::Validation and database errors.
I use it as data source for HTML::FormFu::ExtJS forms. Am Dienstag, den 27.10.2009, 16:48 +0100 schrieb Carl Franks: > 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 <se...@uacoders.com>: > > Hi, > > I use Catalyst + DBIx + FormFu > > I just porting relatively big application with lot of tables to Catalyst. > > 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@lists.scsys.co.uk > > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu > > > > _______________________________________________ > HTML-FormFu mailing list > HTML-FormFu@lists.scsys.co.uk > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu -- LG Alex *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please notify the sender and then delete this e-mail immediately. *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu