I created validation messages(ValidationMessages.properties) file to make the i18n possible in my project.
It 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 in this way:
@Null(message = "{pwtNumber.error}")
public String getPwtNummer() {
return pwtNummer;
}
But the problem is i don't get the error message but the key from the properties file. It is the error message that i get:
myForm:pwtNummer: {pwtNumber.error}
How can i solve it?