I created a validation file (ValidationMessages.properties) to make i18n possible in my project.
Looks like:
pwtNumber.error=PWT Number error..
I defined it in faces-config.xml:
<message-bundle>com.mycompany.web.i18n.ValidationMessages</message-bundle>
In my code, I used it as follows:
@Null(message = "{pwtNumber.error}") public String getPwtNummer() { return pwtNummer; }
But the problem is that I am not getting the error message, but the key from the properties file. This is the error message I get:
myForm:pwtNummer: {pwtNumber.error}
How can I solve it?
Kayser
source share