You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Christian Beutenmueller (JIRA)" <de...@myfaces.apache.org> on 2008/10/17 22:57:44 UTC

[jira] Issue Comment Edited: (TRINIDAD-1136) Label Anchor for tr:input does not render in tr:messages when label attribute is EL

    [ https://issues.apache.org/jira/browse/TRINIDAD-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640660#action_12640660 ] 

chbeutenmueller edited comment on TRINIDAD-1136 at 10/17/08 1:57 PM:
-----------------------------------------------------------------------------

Forget the comment if that's what you are asking (just deleted it, sorry for writing crap)

If you mean the bug:

The problem is that a label attribute, that is computed by an EL expression doesn't get rendered in the tr:messages. And this is due to the fact, that the "label" attribute in the attribute Map of the UIXEditable is set to an empty String and not null and so UIXEditableValue._getLabel  returns it and doesn't evaluate the EL expression.


      was (Author: chbeutenmueller):
    Forget the comment if that's what you are asking. 

If you mean the bug:

The problem is that a label attribute, that is computed by an EL expression doesn't get rendered in the tr:messages. And this is due to the fact, that the "label" attribute in the attribute Map of the UIXEditable is set to an empty String and not null and so UIXEditableValue._getLabel  returns it and doesn't evaluate the EL expression.

  
> 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.