Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

message-bundle  RSS feed

 
Tomas Babic
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!