You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Oscar Picasso <os...@yahoo.com> on 2005/05/11 14:09:50 UTC

Message, format and single quotes

Hi

I have a problem with formatting text and single quotes.

Lets's say I have the following property file:

username = nom d'utilisateur
required = Le champ {0} est requis

In my validator bean specification I have: 
<set-property name="requiredMessage" 
              expression="format('required', getMessage('username'))"/>

In the html file:
<label for="username"><span jwcid="@FieldLabel"
field="ognl:components.username"/></label>
<input jwcid="username@ValidField" displayName="message:username" 
       validator="ognl:beans.usernameValidator" value="ognl:user.username"/>

The error message is then:
Le champ nom dutilisateur est requis
[single quote removed]

and the label:
nom d'utilisateur
[correct]

Any idea ?

I have tried to add a single quote:
username = nom d''utilisateur

I then get:

error message -> Le champ nom d'utilisateur est requis
label -> nom d''utilisateur


Thanks


Oscar


	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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