Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

message-bundle not working  RSS feed

 
Kev D'Arcy
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The <message-bundle> must contain the full classpath. Is it?
 
Kev D'Arcy
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The messages.properties is in the root of the classpath i.e.
in the WEB-INF/classes folder
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Kev D'Arcy
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!