You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Denis Souza <ds...@sti.com.br> on 2005/11/01 18:22:07 UTC

Overriding validations strings in T4

Hi,

 

            I'm trying to override the error strings shown after validation
fails on a form, but I'm without success. After a bit of snooping around I
found out that it seems all validation strings come from a resource bundle
specified in the ValidationStrings class. This class also maps constants to
their respective key values in the resource bundle. Since the
ValidationStrings class uses it's own resource bundle, I'm guessing that's
why placing the keys and their values the application's or a page's
.properties file won't work. Any ideas on how this could be done?

 

Thanks,

Denis Souza

 


Re: Overriding validations strings in T4

Posted by Oleg Batrashev <og...@gmail.com>.
> Any ideas on how this could be done?
In T3 we created ValidationStrings for our Locale and placed it in the
same package, but own jar. That is
org/apache/tapestry/valid/ValidationStrings_et.properties

And it works fine, but Im not sure about overriding resource files for
existing locales, probably it must be earlier in the classpath.

Oleg

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