title: rendering panelgrid with ajax primefaces
body: <p>I have this</p>
  
  <pre><code>&lt;p:selectOneMenu  id="dec" value="#{editCommandController.myCom.decision}" &gt;  
                          &lt;f:selectItems value="#{editCommandController.decisions}" /&gt;  
                          &lt;p:ajax update="etat :myform:alors" event="change" /&gt;
                      &lt;/p:selectOneMenu&gt;  
  </code></pre>
  
  <p>it allow to disable this </p>
  
  <pre><code>&lt;p:selectOneMenu  id="etat" value="#{editCommandController.myCom.etat}" disabled="#{editCommandController.myCom.decision eq 'rejettée'}" &gt;  
                          &lt;f:selectItems value="#{editCommandController.etats}" /&gt;   
                      &lt;/p:selectOneMenu&gt; 
  </code></pre>
  
  <p>when the condition is checked
  and I would like to also hide this panelgrid when the same condition is checked : </p>
  
  <pre><code> &lt;h:panelGrid id="alors"   rendered="#{editCommandController.myCom.decision ne 'rejettée'}" &gt;
                      &lt;p:dataTable id="cars" style="width: 80px;" var="car" value="#{editCommandController.pdm}" paginator="true" rows="10"  
                                   selection="#{editCommandController.selectedPapier}" selectionMode="single" &gt;  
  
                          &lt;p:ajax event="rowSelect" listener="#{editCommandController.onRowSelect()}"   
                                  update=":myform:jesuis" /&gt;  
  
                          &lt;f:facet name="header"&gt;  
                              RadioButton Based Selection  
                          &lt;/f:facet&gt;                    
  
                          &lt;p:column headerText="libelle"&gt;  
                              #{car.libelle}  
                          &lt;/p:column&gt;  
  
                          &lt;p:column headerText="format"&gt;  
                              #{car.format}  
                          &lt;/p:column&gt;  
  
                          &lt;p:column headerText="stock" &gt;  
                              #{car.stock}  
                          &lt;/p:column&gt;  
  
                      &lt;/p:dataTable&gt;  
  
  
                      &lt;h:outputText  id="jesuis" value=" c est la papier : #{editCommandController.selectedPapier.libelle}"  /&gt;
  
  
                      &lt;h:panelGrid columns="2" cellpadding="5" style="margin-top: 22px;"&gt;  
                          &lt;h:outputLabel value="Reliure :" for="city" /&gt;
                          &lt;p:selectOneMenu id="city" value="#{addPapierController.choixReliure}"&gt;  
                              &lt;f:selectItem itemLabel="choisir reliure" itemValue="" /&gt;  
                              &lt;f:selectItems value="#{addPapierController.libelleReliures}" /&gt;  
                              &lt;p:ajax 
                                  listener="#{addPapierController.handleCityChange}" /&gt;  
                          &lt;/p:selectOneMenu&gt;
                      &lt;/h:panelGrid&gt;
  
                  &lt;/h:panelGrid&gt;
  </code></pre>
  
  <p>but I notice it check the panelgrid once the panelgrid when the page loads for the first time</p>
  
  <p>do you any idea to make working this feature for all the time like for selectonemenu above, thanks</p>