application2.properties javax.faces.component.UIInput.REQUIRED=Please type something useful
application3.properties javax.faces.component.UIInput.REQUIRED=Hello World
The last message from application3.properties wins, the previous messages are ignored by validation. On every application, when an input field is empty, the shown message is "Hello World".
To solve this problem i want to create an own validator who reads the message-bundle which belong to the application and returns the correct error-value. But this doesnt work, because empty fields are not validated.
Hmmm... should be a way to specify the bundle for each application, and write validators for each field you need a different message seems too much work! I'm assuming the applications share the same page and JSF configuration. Where is the specific application selected? How you distinguish one app from the other? Maybe when the app is started you can programatically set the right bundle (or better, inject it through JSF config). Just an idea, maybe I'm totally wrong
Joined: Jun 25, 2007
Hello A. Dusi, thank you for your hint, i tried this solution. Hope that MyFace 1.1.6 will support JSF-RI 1.2
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How to call a Validator when the input-field is empty?