Re: Localized validation messages

2006-12-19 Thread Marilen Corciovei
In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french validation to Tapestry I created a Tapestry-french-validation.jar in the lib with the following

Re: Localized validation messages

2006-12-19 Thread Cyrille37
Marilen Corciovei a écrit : In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french validation to Tapestry I created a Tapestry-french-validation.jar

Re: Localized validation messages

2006-12-19 Thread Marilen Corciovei
On Tue, 2006-12-19 at 11:22 +0100, Cyrille37 wrote: Marilen Corciovei a écrit : In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french

Re: Localized validation messages

2006-12-19 Thread andyhot
http://tapestry.apache.org/tapestry4.1/usersguide/localization.html See the namespace message catalogs Marilen Corciovei wrote: On Tue, 2006-12-19 at 11:22 +0100, Cyrille37 wrote: Marilen Corciovei a écrit : In fact you don't need to overwrite the ValidationStrings.properties which

Re: Localized validation messages

2006-12-19 Thread Martin Strand
for custom validation messages you can do something like this: input jwcid=... validators=validators:required[%your-message-key]/ note the % in front of the message key read more here: http://tapestry.apache.org/tapestry4.1/usersguide/validation.html On Tue, 19 Dec 2006 11:22:31 +0100,

Re: Localized validation messages

2006-12-19 Thread Greg Ward
On 12/19/06, Marilen Corciovei [EMAIL PROTECTED] wrote: In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french validation to Tapestry I created a

Re: Localized validation messages

2006-12-18 Thread Norbert Sándor
I think you have to use this dirty solution. There is an issue about this problem, it is currently scheduled for 4.1.2 (http://issues.apache.org/jira/browse/TAPESTRY-698). Regards: Norbi Cyrille37 írta: Hello, I was coming mad when trying to localize my validation messages. After some

Re: Localized validation messages

2006-12-18 Thread cyrille37
Norbert Sándor wrote: I think you have to use this dirty solution. Ok, I'll use another way : injecting the message into the Validator bean name=uploadFileValidator class=tap03.ui.web.validators.DocumentsUploadFileValidator set name=messageUnauthorizedContenttype

Re: Localized validation messages

2006-08-02 Thread Ivano
The resourse bundle files need to be on the classpath. Try moving them to WEB-INF/classes. Malin Ljungh wrote: Gah! Please save me from madness... I've posted earlier about validation messages. I'm now stuck on getting them localized. I keep getting the following exception:

RE: Localized validation messages

2006-08-02 Thread Firas Adiler
Hi Malin, That's because Tapestry looks for username-not-unique in the properties file bundeled with Tapestry. To override it, your ValidationStrings.properties should have this path {CLASS_PATH_ROOT}/org/apache/tapestry/valid/ValidationStrings.properties. To do that: create the package

Re: Localized validation messages

2006-08-02 Thread Malin Ljungh
Yeeehaa! It works :D Thank you Firas! TACK ;) /Malin On 8/2/06, Firas Adiler [EMAIL PROTECTED] wrote: Hi Malin, That's because Tapestry looks for username-not-unique in the properties file bundeled with Tapestry. To override it, your ValidationStrings.properties should have this path