Re: [html-formfu] Using DBIC Validation in FormFu

2009-10-29 Thread Serge Zaschipas
Hi Carl, So today found how to create my own errors on FormFu thats example of my hacks ;-) package HTML::FormFu::Model::DBIC::Validated; use strict; use warnings; use base 'HTML::FormFu::Model::DBIC'; use Data::Dumper; use DBIx::Class::Validation::Dictionary qw/hummable/; use Carp qw( croak ); o

Re: [html-formfu] Using DBIC Validation in FormFu

2009-10-29 Thread Serge Zaschipas
Hi Carl, I just plays with FormFu to find solution of my problem. There is example what I want: 1) I want use DBIx::Class for model 2) I want use DBIx::Class::Validation as model validator This points I have done and checked in my example: package pf2::Schema::Result::Switch; use strict; use warni

Re: [html-formfu] Using DBIC Validation in FormFu

2009-10-29 Thread Serge Zaschipas
2009/10/27 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 o

Re: [html-formfu] Using DBIC Validation in FormFu

2009-10-28 Thread Alexander Hartmaier
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 b

Re: [html-formfu] Using DBIC Validation in FormFu

2009-10-27 Thread 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 valid