Hi guys,
I am trying to localize general REQUIRED message and from some reason I can not pass through parameter.
Part of my faces-config.xml
...
<locale-config>
<default-locale>en</default-locale>
</locale-config>
<message-bundle>com.test.i18n.messages</message-bundle>
</application>
messages.properties
...
javax.faces.component.UIInput.REQUIRED=Value is required for {0}.
And what I get on screen when validation fails is:
Value is required for {0}.
I would expect something like:
Value is required for Name.
where "Name" is text value for Label widget attached to specific required text field.
So it seems like my <message-bundle> tag does not support attributes. But it should because original message is :
javax.faces.component.UIInput.REQUIRED={0}: Validation Error: Value is required.
Any idea?
Thanks
Tomas