tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yura.Tkachenko" <Yura.Tkache...@muranosoft.com>
Subject RE: Localize validation message
Date Sun, 02 Apr 2006 15:37:20 GMT
Thanks, Martin.

This works :-)

 

-----Original Message-----
From: Martin Strand [mailto:martin.strand@entcap.se] 
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  

<Yura.Tkachenko@muranosoft.com> 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:Yura.Tkachenko@muranosoft.com>

> Yura.Tkachenko@muranosoft.com

> 

>  <http://www.muranosoft.com> http://www.muranosoft.com

> 

> 

> 

> 

 

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org

For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message