HI,

I was reading this article by Hans Bergens and in it he has an example of customizing some of the validation messages in this way:

in faces-config.xml:

<application>
    <message-bundle>labMessages</message-bundle>
</application>

create a labMessages.properties file in /WEB-INF/classes which has( for now ):

javax.faces.validator.NOT_IN_RANGE=*
javax.faces.validator.NOT_IN_RANGE=Must be between {0} - {1}

So instead of the standard very length error message I should get an asterisk next to the invalid input, but I'm still getting the standard ones.

Does MyFaces require any additional configuration?

Thanks,
Elam

Reply via email to