users@glassfish.java.net

JSF's requiredMessage attribute and JSF EL

From: <glassfish_at_javadesktop.org>
Date: Mon, 16 Jul 2007 09:44:00 PDT

Hello,
About JSF's requiredMessage attribute.
The attribute looks like not working with JSF EL.
Example:
&lt;h:inputText id="keyword" value="#{entrance.keyword}" required="true" requiredMessage="#{msg.keyword_required}" &gt;

But it goes well when the attribute value is not EL.
Example:
&lt;h:inputText id="keyword" value="#{entrance.keyword}" required="true" requiredMessage="KEYWORD REQUIRED" &gt;

I tried it on Glassfish v2 beta 3 and b55.
Thanks.
[Message sent by forum member 'nakamurakenichi' (nakamurakenichi)]

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