title: Update content of p:dialog when we have changes in managed bean
body: <p>I have an array list  to show in a p:dialog and this list was changed  when i click on command Button. Then I want to know how i can show the content of list for each change during excution of method in managed bean??</p>
  
  <p>Synchronization between the iterative process in the managed bean and (DataList/progressbar) in a DialogBox.</p>
  
  <p>DIALOG:</p>
  
  <pre><code>    &lt;h:body&gt;&lt;h:define name="dialogBox"&gt;&lt;p:dialog id="genDialog" header="Opération de génération"  modal="true"  widgetVar="dlg1"&gt;  
                &lt;h:outputText value="le traitement de la génération est en cours..." /&gt; 
                &lt;p:dataList id="sitesDataList" value="#{generationBean.generatedSites}"    var="siteStatus" itemType="square" &gt;
  
                      #{siteStatus.site} ---------------&gt; #{siteStatus.status}
  
                &lt;/p:dataList&gt;
  
              &lt;/p:dialog&gt;
  &lt;/h:define &gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>CommandButton:</p>
  
  <pre><code>   `&lt;h:form  id="form1" &gt; &lt;h:panelGrid  columns="2" id="panButton"&gt;` &lt;p:commandButton  id="genbutton" style="margin-left: 930px"  value="#{generationBean.labelBoutonGen}"   immediate="true"  global="false" onstart="dlg1.show()"
                                            actionListener="#{generationBean.genererDPT}"   rendered="#{ generationBean.selectedRegion ne 'choix'}"  update="sitesDataList"&gt;
  
   &lt;/h:panelGrid  &gt; &lt;/h:form&gt;`
  </code></pre>
  
  <p>I'm running primefaces 3.5 in glassfish server</p>