webtier@glassfish.java.net

Re: [webtier] JSF 1.2 Bundle Messages

From: Jeffrey Blattman <jeffrey.blattman_at_gmail.com>
Date: Tue, 21 Jul 2009 08:14:08 -0700

i'd like an answer to this also. as far as i know, there is no solution
- you get one static message for required value missing validation
failure. because of this restriction i've had to home-grow my one
validation framework in places.

On 7/21/09 8:00 AM, webtier_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>