title: p:commandButton rendered property not working after ajax update (Primefaces 3.5)
body: <p>I reviewed my code lot of times and didnt find questions about it.</p>
  
  <p>I have a problem with p:commandButton rendered property. The p:commandButton is allways displayed even if the getter method returns false. That happens after an ajax update.</p>
  
  <p>I have a p:selectOneMenu with a p:ajax event="change" that sets a MB and updates a p:commandButton (with a rendered property based on a boolean getter) and two other components: a second p:selectOneMenu and a p:outputLabel. </p>
  
  <p>The second p:selectOneMenu and the p:outputLabel are rendered without problems when I change the first p:selectOneMenu selection, but the p:commandButton is allways displayed. The rendered property is not updated.</p>
  
  <p>If I refresh the browser or if I set the update="@form" the p:commandButton is displayed/hidden correctly. But note that all the components are in the same container.</p>
  
  <p>What am I doing wrong? The code:</p>
  
  <pre><code>&lt;p:selectOneMenu id="cmbPais" value="#{pessoaController.selected.endereco.pais}"&gt;
      &lt;f:selectItems value="#{paisController.itemsSelectOne}"/&gt;
      &lt;p:ajax event="change" update="cmbEstado,btnBuscaPeloEndereco,test"/&gt;
  &lt;/p:selectOneMenu&gt;
  
  &lt;p:outputLabel id="test" value="#{pessoaController.selected.endereco.ok}"/&gt;
  
  &lt;p:commandButton id="btnBuscaPeloEndereco" icon="ui-icon-correios" type="button" onclick="dlgCEP.show();" rendered="#{pessoaController.selected.endereco.ok}"/&gt;
  
  &lt;p:selectOneMenu id="cmbEstado" value="#{pessoaController.selected.endereco.estado}"&gt;
      &lt;f:selectItems value="#estadoController.getItemsSelectOne(pessoaController.selected.endereco.pais)}"/&gt;
      &lt;f:ajax event="change" render="cmbCidade" /&gt;
  &lt;/p:selectOneMenu&gt;
  </code></pre>