title: Primefaces panelMenu bug?
body: <pre><code>&lt;p:panelMenu&gt;
              &lt;p:submenu label="Articoli"&gt;
                  &lt;p:menuitem value="Anagrafica" action="/articoli/anagrafica" icon="ui-icon-document" ajax="false" /&gt;
                  &lt;p:menuitem value="Importazione" action="/articoli/importazione" ajax="false" /&gt;
                  &lt;p:menuitem value="Marchi" action="/articoli/marchi" ajax="false" /&gt;
              &lt;/p:submenu&gt;
              &lt;p:submenu label="Clienti"&gt;
                  &lt;p:menuitem value="Anagrafica" action="/clienti/anagrafica" ajax="false" /&gt;
              &lt;/p:submenu&gt;
              &lt;p:submenu label="Vendite" icon="ui-icon-suitcase"&gt;
                  &lt;p:menuitem value="Point Of Sale" action="/vendite/pos" ajax="false" /&gt;
              &lt;/p:submenu&gt;
              &lt;p:submenu label="Utilita" icon="ui-icon-calculator"&gt;
                  &lt;p:menuitem value="TestPDF" action="#{menuController.getTestPdf()}" ajax="false" /&gt;
              &lt;/p:submenu&gt;
          &lt;/p:panelMenu&gt;
  </code></pre>
  
  <p>This menu shows perfectly but after a little navigation it behaves in unpredictable way.</p>
  
  <p>I mean I can't control the state open / closed of each submenu so, on each menuitem click and page loading, they are expanded / collapsed <strong>randomly</strong> !</p>
  
  <p>After a little search I found that panelMenu uses client cookies for saving the submenu's states, but.... isn't it supposed to manage all that automatically?</p>
  
  <p>What can I do to manually control the state of each submenu?</p>