This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean validation custom messages dont work

 
Jose Luis Mesa Munoz
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all escuse me for my english. I have a problem with bean validation messages. I have ValidationMessages.properties, MessageResources.properties and in my .xhtml or in my ManagedBeans files i can access the keys... all is correct but when i put the


in my MessageResources bean Validations dont work well. This is my configuration:

faces-config.xml



The MessageResources



The .xhtml file



the property in my managedBean




the ValidationMessages.properties



Bean validation display my messages but not i this format javax.faces.validator.BeanValidator.MESSAGE={1}: {0}
where {1} is the label and {0} is the message. It only display the message with the key error.campoobligatorio=El campo es obligatorio

SOMEONE KNOWS WHY???
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17625
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Sr. Munoz! (¿Muñoz?)

I think your problem is:


Where it should be


The "#" triggers the EL processor.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic