aspose file tools
The moose likes JSF and the fly likes message-bundle not working Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "message-bundle not working" Watch "message-bundle not working" New topic
Author

message-bundle not working

Kev D'Arcy
Ranch Hand

Joined: Jul 26, 2001
Posts: 75
Hi,

I'm trying to verride the default REQUIRED error message in a properties
file, but JSF seems to be ignoring it. I have it listed in my faces-config
as:

The properties file is on the classpath and the entry in the file is:


Any ideas?

Kev
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
The <message-bundle> must contain the full classpath. Is it?


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Kev D'Arcy
Ranch Hand

Joined: Jul 26, 2001
Posts: 75
The messages.properties is in the root of the classpath i.e.
in the WEB-INF/classes folder
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
Hmmm. That should work

Here is my setup



and I have core.properties in my WEB-INF\classes\bundles folder


[ October 15, 2006: Message edited by: Lynette Dawson ]

MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Kev D'Arcy
Ranch Hand

Joined: Jul 26, 2001
Posts: 75
Hmmmm it seems it's just a "feature" of the WebSphere 5.1 test environment
in Rational Application Developer... And people wonder why I want to use
Eclipse?!

K
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: message-bundle not working
 
Similar Threads
Where to put resource bundles?
Custom error messages in JSF validators?
multiple faces config files
Problem with message bundle
Weird JSF "h:messages" tag behavior