title: PrimeFaces Panel collapses on update
body: <p>I do not know if this is possible using just primefaces and JSF but I have a panel, which is collapsed on View Entry. I can open the Panel which has a checkbox that triggers an update of the Panel.</p>
  
  <p>The problem is that when the panel is updated by Ajax, the Panel is collapsed again. But I want to retain the current open status of the Panel. It should no close on update. Is this possible?</p>
  
  <p>I use PF 3.2 and JSF2.1</p>
  
  <pre><code>&lt;p:fieldset style="width:200px;height:300px;overflow:auto;"&gt;
  
          &lt;h:outputLabel value="Available Applications"
      style="font-weight: bold;font-size: 14px;" /&gt;
                  &lt;br /&gt;
                  &lt;br /&gt;
                  &lt;h:panelGroup&gt;
  
                      &lt;ui:repeat var="category"
                          value="#{epsEditController.subscriptionCategoryVOs}"&gt;
  
                          &lt;p:panel header="#{category.applicationCategory.name}"
                              id="panell" toggleable="true" closable="false" toggleSpeed="500"
                              collapsed="true"
                              widgetVar="panel_#{category.applicationCategory.name}"&gt;
  
                              &lt;h:panelGrid columns="2" border="0"&gt;
                                  &lt;h:outputLabel value="Select all"
                                      style="font-weight: bold;float:left;" /&gt;
                                  &lt;p:selectBooleanCheckbox value="#{category.allSelected}"&gt;
                                      &lt;p:ajax event="change"
                                          listener="#{epsEditController.selectionChanged(category)}"
                                          update="panell" /&gt;
                                  &lt;/p:selectBooleanCheckbox&gt;
                              &lt;/h:panelGrid&gt;
  
                              &lt;ui:repeat var="subcat"
                                  value="#{category.applicationSubcategoryVOs}"&gt;
  
                                  &lt;p:selectBooleanCheckbox value="#{subcat.selected}"
                                      title="#{subcat.applicationSubcategory.name}"
                                      itemLabel="#{subcat.applicationSubcategory.name}" /&gt;
  
                  &lt;/ui:repeat&gt;
  
                  &lt;/p:panel&gt;
              &lt;/ui:repeat&gt;
          &lt;/h:panelGroup&gt;
      &lt;/p:fieldset&gt;
  </code></pre>