title: JSF 2 / primefaces : p:panel not rendered with ajax?
body: <p>Im not sure if this behaviour is normal or not.<br>
  Im hoping that my <code>panel</code> will be rendered only after clicking on a button that triggers an <code>ajax</code> request.</p>
  
  <p>Not using Ajax works fine :</p>
  
  <ol>
  <li><code>p:panel id="myPanel" rendered="#{myBean.flag}"</code></li>
  <li><code>p:commandButton ajax="false" action="#{myBean.setFlagToTrue}"</code></li>
  <li>before clicking the button, the myPanel is not displayed <code>(flag = false)</code></li>
  <li>clicking the button, will set the flag to true, and myPanel is rendered fine</li>
  </ol>
  
  <p>Using ajax fails :</p>
  
  <ol>
  <li><code>p:panel id="myPanel" rendered="#{myBean.flag}"</code></li>
  <li><code>p:commandButton ajax="true" action="#{myBean.setFlagToTrue}" update="myPanel"</code></li>
  <li>before clicking the button, the myPanel is not displayed <code>(flag = false)</code></li>
  <li>clicking the button, will set the flag to true (as displayed by my log file), and myPanel <strong>is not rendered</strong></li>
  </ol>
  
  <p>I've tried omitting the rendered attribute, and indeed the ajax works fine.<br>
  I can tell that by looking at the changes reflected inside the panel.</p>