views:

74

answers:

0

hi i am working on multilingual web application and i want to show label of components in validation message instead of client-id

<h:outputLabel styleClass="default largest" value="#{text['test.name']}" id="testLabel" for="testInput"/>
<t:inputText id="testInput" forceId="true" label="#{text['test.name']}" value="#{test}" autocomplete="off" styleClass="small text" required="true" maxlength="20" dir="rtl">
      <f:validateLength minimum="16" maximum="20"/>
</t:inputText>

when i set expression language in label attribute (label="#{text['test.name']}"), it will be shown as empty string in validation message , and getLabel() method of javax.faces.component._MessageUtils return empty string

myfaces 1.2.5, webflow 2.0.5, tomahawk 1.1.8, facelet 1.1.14, jboss-el 2.0.0GA