[richfaces-issues] [JBoss JIRA] (RF-13104) rich:panelMenu: dynamic selection of items using activeItem-binding does not work

Brian Leathem (JIRA) jira-events at lists.jboss.org
Mon Jul 29 14:31:26 EDT 2013


    [ https://issues.jboss.org/browse/RF-13104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793574#comment-12793574 ] 

Brian Leathem edited comment on RF-13104 at 7/29/13 2:29 PM:
-------------------------------------------------------------

Because the attribute type of the _activeItem_ is a *String*, the value is cached.  Changing the attribute type to an Expression type, and evaluating that Expression should resolve this issue.

See the RenderKitUtils#evaluateAttribute 
https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/renderkit/RenderKitUtils.java#L786
                
      was (Author: bleathem):
    Because the attribute type of the _activeItem is a *String*, the value is cached.  Changing the attribute type to an Expression type, and evaluating that Expression should resolve this issue.

See the RenderKitUtils#evaluateAttribute 
https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/renderkit/RenderKitUtils.java#L786
                  
> rich:panelMenu: dynamic selection of items using activeItem-binding does not work
> ---------------------------------------------------------------------------------
>
>                 Key: RF-13104
>                 URL: https://issues.jboss.org/browse/RF-13104
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: component-menu
>    Affects Versions: 4.3.2
>         Environment: RF4.3.2;MyFaces2.1.12;Tomcat7;Oracle Jdk1.7
>            Reporter: Alexey Shakov
>            Priority: Minor
>
> Allow for controlling the panelMenu selection programmatically using the _activeItem_ attribute.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list