You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Malin Ljungh <ma...@kvadrat.se> on 2006/08/01 20:23:39 UTC
Localized validation messages
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:
java.util.MissingResourceException
Can't find resource for bundle java.util.PropertyResourceBundle, key
username-not-unique
I've put a file ValidationStrings.properties in my WEB-INF but that doesn't
help. And I can't find any documentation.
Please help :)
Malin
Re: Localized validation messages
Posted by Ivano <i....@mclink.it>.
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:
>
> java.util.MissingResourceException
> Can't find resource for bundle java.util.PropertyResourceBundle, key
> username-not-unique
>
>
> I've put a file ValidationStrings.properties in my WEB-INF but that
> doesn't
> help. And I can't find any documentation.
>
> Please help :)
>
> Malin
>
--
Ivano Pagano
Re: Localized validation messages
Posted by Malin Ljungh <ma...@kvadrat.se>.
Yeeehaa! It works :D
Thank you Firas!
TACK ;)
/Malin
On 8/2/06, Firas Adiler <ta...@idigna.com> 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
> {CLASS_PATH_ROOT}/org/apache/tapestry/valid/ValidationStrings.properties.
>
> To do that:
> create the package /org/apache/tapestry/valid/ under your source folder
> and
> place your custom ValidationStrings.properties there.
>
>
> Lycka till! ;-)
>
> </Firas>
>
> -----Original Message-----
> From: Malin Ljungh [mailto:malin.ljungh@kvadrat.se]
> Sent: Tuesday, August 01, 2006 8:24 PM
> To: Tapestry users
> Subject: Localized validation messages
>
> 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:
>
> java.util.MissingResourceException
> Can't find resource for bundle java.util.PropertyResourceBundle, key
> username-not-unique
>
>
> I've put a file ValidationStrings.properties in my WEB-INF but that
> doesn't
> help. And I can't find any documentation.
>
> Please help :)
>
> Malin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
RE: Localized validation messages
Posted by Firas Adiler <ta...@idigna.com>.
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 /org/apache/tapestry/valid/ under your source folder and
place your custom ValidationStrings.properties there.
Lycka till! ;-)
</Firas>
-----Original Message-----
From: Malin Ljungh [mailto:malin.ljungh@kvadrat.se]
Sent: Tuesday, August 01, 2006 8:24 PM
To: Tapestry users
Subject: Localized validation messages
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:
java.util.MissingResourceException
Can't find resource for bundle java.util.PropertyResourceBundle, key
username-not-unique
I've put a file ValidationStrings.properties in my WEB-INF but that doesn't
help. And I can't find any documentation.
Please help :)
Malin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org