I would like to change the validation messages to be a bit more friendly, like they are with Commons Validation and Struts/Spring. Basically, instead of:

"firstName": Value is required.

I'd like it to say "First Name is a required field."

I have the following in my resource bundle, but it doesn't give me access to the field's label (i18n-ized).

javax.faces.component.UIInput.REQUIRED={0} is a required field.

Instead it prints:

firstName is a required field.

Any idea how to look up a input field's label and use the text from that in the {0}?

Thanks,

Matt



Reply via email to