title: Primefaces Dialog Update after it is open
body: <p>I want to update content primafaces dialog after it is opened.   Is it possible? My example code is below.</p>
  
  <pre><code> &lt;p:dialog widgetVar="pictureSaveDialog" id="pictureDialog" closable="false" &gt;
     &lt;p:outputPanel id="saveDialogPanel"&gt;
  
     &lt;p:selectOneRadio id="options" value="#{pictureDefinitionsView.radioValue}"  &gt;  
                  &lt;f:selectItem itemLabel="FILE" itemValue="FILE" /&gt;  
                  &lt;f:selectItem itemLabel=""  itemValue="URL" /&gt;  
           &lt;p:ajax update="fileUpload1 fileUpload2" event="click" process="options"  /&gt;
     &lt;/p:selectOneRadio&gt;
  
     &lt;p:outputPanel id="fileUpload1" rendered="#{pictureDefinitionsView.selectedFileUpload}"&gt;   File &lt;/p:outputPanel&gt;
  
   &lt;p:outputPanel id="fileUpload2" rendered="#{pictureDefinitionsView.selectedUrlUpload}"&gt;   URL &lt;/p:outputPanel&gt;
  &lt;/p:outputPanel id="saveDialogPanel"&gt;
  </code></pre>
  
  <p></p>
  
  <p>Bean Methods.</p>
  
  <pre><code>    public boolean isSelectedFileUpload(){
      return radioValue.equals("FILE");
      } 
  public boolean isSelectedUrlUpload(){
      return !isSelectedFileUpload();
      }
  </code></pre>