[richfaces-issues] [JBoss JIRA] (RF-11546) collapsiblePanel does not reevaluate expanded attribute on ajax render

Brian Leathem (Updated) (JIRA) jira-events at lists.jboss.org
Mon Nov 14 17:40:40 EST 2011


     [ https://issues.jboss.org/browse/RF-11546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-11546:
-------------------------------

        Description: 
If a rich:collapsiblePanel is rerendered via ajax, the expanded attribute is not re-evaluated.
{code}
<rich:collapsiblePanel  toggleListener="#{bean.toggle}"
expanded="#{bean.open}" switchType="ajax"
onswitch="#{bean.render ? 'load();' : ''} >
{code}
The bean.render method is called, the open method is not (verified with the debugger).
So e.g. the panel is opened by click, some other action changes the (session) bean property open to false and then an action ajax-rerenders the panel, the panel is still open instead of closed.
Only on a page GET reload is the panel closed.

  was:
If a rich:collapsiblePanel is rerendered via ajax, the expanded attribute is not re-evaluated.

<rich:collapsiblePanel  toggleListener="#{bean.toggle}"
expanded="#{bean.open}" switchType="ajax"
onswitch="#{bean.render ? 'load();' : ''} >

The bean.render method is called, the open method is not (verified with the debugger).
So e.g. the panel is opened by click, some other action changes the (session) bean property open to false and then an action ajax-rerenders the panel, the panel is still open instead of closed.
Only on a page GET reload is the panel closed.

    Forum Reference: http://community.jboss.org/thread/166846?tstart=0  (was: http://community.jboss.org/thread/166846?tstart=0)

    
> collapsiblePanel does not reevaluate expanded attribute on ajax render
> ----------------------------------------------------------------------
>
>                 Key: RF-11546
>                 URL: https://issues.jboss.org/browse/RF-11546
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-panels-layout-themes
>    Affects Versions: 4.0.0.Final
>            Reporter: u j
>             Fix For: 4.2.0.Tracking
>
>
> If a rich:collapsiblePanel is rerendered via ajax, the expanded attribute is not re-evaluated.
> {code}
> <rich:collapsiblePanel  toggleListener="#{bean.toggle}"
> expanded="#{bean.open}" switchType="ajax"
> onswitch="#{bean.render ? 'load();' : ''} >
> {code}
> The bean.render method is called, the open method is not (verified with the debugger).
> So e.g. the panel is opened by click, some other action changes the (session) bean property open to false and then an action ajax-rerenders the panel, the panel is still open instead of closed.
> Only on a page GET reload is the panel closed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list