You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gary Kind (JIRA)" <de...@myfaces.apache.org> on 2007/09/21 23:33:50 UTC

[jira] Created: (TRINIDAD-734) EL expression used for node labels gets evaluated only once

EL expression used for node labels gets evaluated only once
-----------------------------------------------------------

                 Key: TRINIDAD-734
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-734
             Project: MyFaces Trinidad
          Issue Type: Bug
            Reporter: Gary Kind


The first time the actionListener calls the getLabel() method for a menu node, if the stored label is an EL expression, it gets evaluated correctly and the returned String is set on the label.  However, before this fix, the evaluated String was set as the label for the menu item node.  This means that the next time the getLabel() method is called, the EL expression is not again evaluated as it should.  The String from the first time it was evaluated is returned instead.  This is incorrect as it prevents an EL expression from changing the label dynamically.

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


[jira] Commented: (TRINIDAD-734) EL expression used for node labels gets evaluated only once

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529589 ] 

Jeanne Waldman commented on TRINIDAD-734:
-----------------------------------------

Completed: At revision: 578324  
Applied trunk.patch to trunk

> EL expression used for node labels gets evaluated only once
> -----------------------------------------------------------
>
>                 Key: TRINIDAD-734
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-734
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Attachments: 122Branch.patch, trunk.patch
>
>
> The first time the actionListener calls the getLabel() method for a menu node, if the stored label is an EL expression, it gets evaluated correctly and the returned String is set on the label.  However, before this fix, the evaluated String was set as the label for the menu item node.  This means that the next time the getLabel() method is called, the EL expression is not again evaluated as it should.  The String from the first time it was evaluated is returned instead.  This is incorrect as it prevents an EL expression from changing the label dynamically.

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


[jira] Updated: (TRINIDAD-734) EL expression used for node labels gets evaluated only once

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer updated TRINIDAD-734:
--------------------------------

    Status: Patch Available  (was: Open)

> EL expression used for node labels gets evaluated only once
> -----------------------------------------------------------
>
>                 Key: TRINIDAD-734
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-734
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Attachments: 122Branch.patch, trunk.patch
>
>
> The first time the actionListener calls the getLabel() method for a menu node, if the stored label is an EL expression, it gets evaluated correctly and the returned String is set on the label.  However, before this fix, the evaluated String was set as the label for the menu item node.  This means that the next time the getLabel() method is called, the EL expression is not again evaluated as it should.  The String from the first time it was evaluated is returned instead.  This is incorrect as it prevents an EL expression from changing the label dynamically.

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


[jira] Updated: (TRINIDAD-734) EL expression used for node labels gets evaluated only once

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer updated TRINIDAD-734:
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3-core
         Assignee: Jeanne Waldman
           Status: Resolved  (was: Patch Available)

Fix checked in by Jeanne.

> EL expression used for node labels gets evaluated only once
> -----------------------------------------------------------
>
>                 Key: TRINIDAD-734
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-734
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gary Kind
>            Assignee: Jeanne Waldman
>             Fix For: 1.0.3-core
>
>         Attachments: 122Branch.patch, trunk.patch
>
>
> The first time the actionListener calls the getLabel() method for a menu node, if the stored label is an EL expression, it gets evaluated correctly and the returned String is set on the label.  However, before this fix, the evaluated String was set as the label for the menu item node.  This means that the next time the getLabel() method is called, the EL expression is not again evaluated as it should.  The String from the first time it was evaluated is returned instead.  This is incorrect as it prevents an EL expression from changing the label dynamically.

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