Excellent tip, that made my code a lot better. Still, I think it should be
possible to globally override all tapestry validation messages in one place.

Is this possible to do this for a datepicker too? I have only defined a
translator for my datepicker, and this solution is not possible for a
translator.

Inge

On 4/2/06, Yura.Tkachenko <[EMAIL PROTECTED]> wrote:
>
> Thanks, Martin.
>
> This works :-)
>
>
>
> -----Original Message-----
> From: Martin Strand [mailto:[EMAIL PROTECTED]
> Sent: Sunday, April 02, 2006 5:29 PM
> To: Tapestry users
> Subject: Re: Localize validation message
>
>
>
> yes, just add % in front of it:
>
>
>
> <binding name="validators"
>
> value="validators:required[%validation-message-key]" />
>
>
>
>
>
> and in your .properties:
>
>
>
> validation-message-key = You are missed {0}
>
>
>
>
>
>
>
> On Sun, 02 Apr 2006 14:29:11 +0200, Yura.Tkachenko
>
> <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi, All
>
> >
>
> >
>
> > I have one trouble: I added almost full localization for my application
>
> > except validation messages, here is my part of page file which describes
>
> > one
>
> > page:
>
> >
>
> > :::::::::..
>
> >
>
> >     <component id="userId" type="TextField">
>
> >
>
> >         <binding name="value" value="userId"/>
>
> >
>
> >         <binding name="displayName" value="message:userid" />
>
> >
>
> >         <binding name="validators" value="validators:required[You are
>
> > missed
>
> > {0}.]" />
>
> >
>
> >     </component>
>
> >
>
> > :::::::::::
>
> >
>
> >
>
> > So I have required validator with custom message, is it possible to move
>
> > this message to localization file?
>
> >
>
> >
>
> >
>
> > Thanks for any help,
>
> >
>
> > Yura Tkachenko
>
> >
>
> > Murano Software Kharkov, Ukraine
>
> >
>
> > mailto:  <mailto:[EMAIL PROTECTED]>
>
> > [EMAIL PROTECTED]
>
> >
>
> >  <http://www.muranosoft.com> http://www.muranosoft.com
>
> >
>
> >
>
> >
>
> >
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

Reply via email to