On 12/03/07, Mario Minati <[EMAIL PROTECTED]> wrote:
Am Montag 12 März 2007 12:41 schrieben Sie:
> Von:  Carl Franks <[EMAIL PROTECTED]>
> I propose making it a lot more powerful and flexible, with the following
> steps:
>  * filter
>  * constrain
>  * inflate
>  * validate
>  * transform

May be can give a modul and / or function name or catalyst ation to call in
the yaml. This way we could seperate the form showing function and the
validation function and we could use the transform functions to store the data
in the model.
And keep the code seperated from the form with very little effort of
connecting both pieces. Just a quick thought.

As with elements, filters, etc. The new validators and transformers
will accept fully qualified package names starting with '+'.

elements:
 - name: foo
   validate:
     - +MyApp::Validate::TestFoo

The package just needs to implement a process() method, and die if the
validation fails.
And if you're using Catalyst-Controller-HTML-FormFu, you'll have
access to the context via $self->form->stash->{context}

Carl

_______________________________________________
Html-widget mailing list
Html-widget@lists.rawmode.org
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget

Reply via email to