title: Set Advanced Panel(Primefaces 3.0) by default in minimized state
body: <p>I am using a primefaces 2 Advanced panel in this way.</p>
  
  <pre><code> &lt;html&gt;
      &lt;h:body&gt;
      &lt;h:form&gt;
  
      &lt;p:panel header="Panel 1" toggleable="true"  widgetVar="panel1"&gt;  
              &lt;h:panelGrid columns="2"&gt;  
  
                 &lt;h:outputText value="Type: *" /&gt;  
                            &lt;h:outputText /&gt;  
                 &lt;/h:panelGrid&gt;  
          &lt;/p:panel&gt;
  
          &lt;p:panel header="Panel 2" toggleable="true"  widgetVar="panel2"&gt;  
              &lt;h:panelGrid columns="2"&gt;  
  
                 &lt;h:outputText value="Type: *" /&gt;  
                            &lt;h:outputText /&gt;  
                 &lt;/h:panelGrid&gt;  
          &lt;/p:panel&gt;
  
      &lt;/h:form&gt;
      &lt;/h:body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>I want to set by default panel in hide state, I also tried as here said 
  <a href="https://stackoverflow.com/questions/10189246/hiding-the-first-tab-of-accordion-panel-in-jsf-primefaces">Hiding the first tab of accordion panel in JSF Primefaces</a>
      but did'nt worked,
  I want to set panel 1 by default open and panel 2 as hidden.</p>
  
  <p>How can do that? Any suggessions....    </p>