Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Tomas Babic

Greenhorn
+ Follow
since May 27, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tomas Babic

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
13 years ago
JSF