webtier@glassfish.java.net

Accessing resource bundle in <h:inputText

From: <webtier_at_javadesktop.org>
Date: Tue, 07 Sep 2010 02:14:24 PDT

Hi,

I am trying to dynamically populate the label attribute of <h:inputText tag;

<h:inputText id="fullNameField" value="#{newUserFormBean.fullName}"
                                                label="#{resourceBundle.fullName}">
<f:validateLength minimum="3" maximum="64"/>
</h:inputText>



When I validate this field i want to populate the error message with the value of label attribute from resource bundle. But it isn't showing up anything, but if i hard code the value of the label field, it displays that value. How do i resolve it?

Thanks.
[Message sent by forum member 'mjbma']

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