webtier@glassfish.java.net

JSF 1.2 Bundle Messages

From: <webtier_at_javadesktop.org>
Date: Tue, 21 Jul 2009 08:00:55 PDT

Hi, is it possible to define different bundle messages for an specified event? Example:

javax.faces.component.UIInput.REQUIRED = value is required

In page X, i want this message to be showed, so no problem example:

<h:inputText value="#{anywhere.value}" required="true"/>

But in the page Y i wanted another message with parameters for the same required situation.

javax.faces.component.UIInput.REQUIRED_CUSTOM = value is required for {2}

<h:inputText value="#{anywhere.value}" required="true" label="Anywhere Input"/>

The problem is: now i will get the other message not this custom one. How could i say to the Faces that now i want to use another bundle-message?

Thks in advance,

Israel
[Message sent by forum member 'israelbgf' (israelbgf)]

http://forums.java.net/jive/thread.jspa?messageID=356773