Label Anchor for tr:input does not render in tr:messages when label attribute 
is EL
-----------------------------------------------------------------------------------

                 Key: TRINIDAD-1136
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1136
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions:  1.0.8-core
         Environment: Trinidad 1.08, Myfaces 1.1.5, Facelets 1.1.14, Tomcat 
5.5, Java 1.6
            Reporter: Christian Beutenmueller
            Priority: Minor



Example:
<tr:messages />
<tr:form id="loginform" defaultCommand="login">

<tr:panelFormLayout rows="2" labelWidth="40%" fieldWidth="60%">                 
                                
        <tr:inputText id="userName" label="#{i18n['home.input.username']}" 
value="#{user.userName}" required="true"  />                 
        <tr:inputText value="#{user.password}" label="Password" required="true" 
secret="true"  />               
</tr:panelFormLayout>
<tr:commandButton styleClass="submit" id="login" 
text="#{i18n['home.button.login']}" action="#{loginForm.doLogin}" 
blocking="true"/>
</tr:form>

If one doesn't fill in anything in the following form, two required field not 
filled in messages are displayed, but the first one has no label/anchor element 
rendered.

A quick look at the sourcecode reveals, that the "label" attribute in the 
org.apache.myfaces.trinidad.component.UIXEditableValue is being set to "" 
(empty String) and not null and therefore the ValueBinding is not correctly 
evaluated by the org.apache.myfaces.trinidad.component.UIXEditableValue 
_getLabel  Method.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to