Closed SimpleTogglePanel on postback behaves like it is being rendered
----------------------------------------------------------------------

                 Key: RF-3382
                 URL: http://jira.jboss.com/jira/browse/RF-3382
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.0
         Environment: Facelets, MyFaces, Tomcat, XP/OSX
            Reporter: h b


On page post-back, the SimpleTogglePanel with switch type 'Ajax' or 'Server' 
invokes backing bean getters even when it is not open.

<rich:simpleTogglePanel opened="false" switchType="ajax"> 
    <f:facet name="header">hello</f:facet> 
    <ui:repeat value="#{backingBean.expensiveData}" var="data"> 
         #{data.tag} 
    </ui:repeat> 

    <rich:dataTable value="#{backingBean.expensiveData2}".../> 

   <h:outputText value="#{backingBean.expensiveData3}"/>
</rich:simpleTogglePanel> 

The first time the page is rendered backingBean.getExpensiveData, 
getExpensiveData2 and getExpensiveData3  are not invoked.  

However on postback getExpensiveData, getExpensiveData2 are invoked 
(getExpensiveData3 is not invoked).

The same thing happens with TabControls that are not visible and toggle panel 
facets that are not visible.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to