[Catalyst] Data::FormValidator

Caroline Johnston johnston at biochemistry.ucl.ac.uk
Thu Nov 24 14:04:27 CET 2005


> msgs => {
>       format      => '%s',
>       },

right, so what I want is a way to make that the default so that I don't
have to type it into every profile in my entire app. Any ideas?

thanks for the help!

Cxx



>
> so that FormValidator doesn't use it's own formating for the error messages.
>
> -Alex
>
>
> -----Original Message-----
> From: catalyst-bounces at lists.rawmode.org
> [mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Caroline Johnston
> Sent: Thursday, November 24, 2005 1:15 PM
> To: The elegant MVC web framework
> Subject: RE: [Catalyst] Data::FormValidator
>
> >   [% FOREACH field IN errors.keys %]
> ...
> >     <td>[% errors.$field %]</td>
>
> OK - so what is in errors.$field? I'm doing:
>
>  [% FOREACH msg IN c.form.msgs %]
>  <b class="warning">[% msg.key %]:</b> [% msg.value %]  <br/>
>  [% END %]
>
> Which I think is more or less equivalent (?) and the contents of [%
> msg.value %] is something like:
>
> <span style="color:red;font-weight:bold"><span class="dfv_errors">*
> missing</span></span>
>
> Is that what you get? If not, what's the diff between [% msg.value %] and
> [% errors.$field %]?
>
> Cxx.
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>





More information about the Catalyst mailing list