0 Replies Latest reply on Feb 8, 2012 5:56 AM by popo_joe

    <rich:collapsiblePanel expanded="false"> : on page refresh expands all ! version 4.1.0.Final

    popo_joe

      Hello,

                I am having some issues with the rich:collapsiblePanel component, I put a ui:repeat inside it to generate content dynamically, everything looks fine the first time I load the page,

      but when I manually "ctrl + r" (firefox v.7.0.1) on the page, it refreshes the page and exapnds all the collapsible panels...since I am using switchType="ajax", it makes the page slower, because it loads everything...

       

      can anyone help me out?

       

      thanks!

       

      here is some code :

       

      <rich:collapsiblePanel  expanded="false"  switchType="ajax" rendered="#{(filters.rendered and (not filters.total))}" header="#{EnumSelectController.getMessageValue(filters.getType())}" styleClass="access-collapsiblePanel" headerClass="access-collapsiblePanel-header"  style="padding:0px;border:none;margin:0px;" leftExpandedIcon="/img/icons/16x16/actions/triangle_down.png" leftCollapsedIcon="/img/icons/16x16/actions/triangle_right.png" > 
                                          <h:panelGroup layout="block" styleClass="access-collapsiblePanel-body">
                                              <ui:repeat  value="#{filters.getFilters()}" var="filter">
                                                  <h:panelGroup rendered="#{not empty filter.name}" layout="block" styleClass="access-collapsiblePanel-item">     
                                                      <h:commandLink immediate="true" actionListener="#{GuestExplorerBean.fillFilter(e)}" styleClass="access-collapsiblePanel-link"  value="#{EnumSelectController.getOriginalMessageValue(filter.label)}">
                                                          <f:param name="name" value="#{filters.getType()}"/>
                                                          <f:param name="value" value="#{filter.name}"/>
                                                          <f:param name="count" value="#{filter.value}"/>
                                                          <f:ajax  render=":bodyForm:guestsDataTable :bodyForm:searchCounter" execute="@form"/>
                                                      </h:commandLink>
                                                      <h:outputText styleClass="access-collapsiblePanel-quantity" value=" (#{filter.value})" />
                                                  </h:panelGroup>
                                              </ui:repeat>
                                          </h:panelGroup>
                                      </rich:collapsiblePanel>