You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Elam Daly <el...@gmail.com> on 2006/05/25 17:57:25 UTC

Validation Message Bundle Problem

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