title: Primefaces refresh one panelgrid from other panelgrid
body: <p>Iam having a requirement where on selecting date present in one panel grid, the component present in other panel grid needs to be refreshed. I am able to refresh components in the same panel grid by "form:text" but the same is not applying for component in other panelgrid.</p>
  
  <p>Can anyone help me how to update other panelgrids component</p>
  
  <pre><code>&lt;h:panelGrid columns="2"&gt;
  &lt;h:outputLabel for="popupCal2" value="To Date" rendered="#{leaveBean.showCalendarText}" /&gt;
  &lt;p:calendar value="#{leaveBean.toDate}" id="popupCal2" showOn="button" widgetVar="tdate" maxdate="#{leaveBean.maxDate}" mindate="#{leaveBean.minDate}"
  rendered="#{leaveBean.showCalendar}" required="true" requiredMessage="TO Date Is Mandatory" readonlyInput="true" pattern="dd/MM/yyyy"&gt;
  &lt;p:ajax event="dateSelect" listener="#{leaveController.getNoOfdays}" update="form1:showDays,form1:uploadFile&gt;&lt;/p:ajax&gt;
  &lt;/p:calendar&gt;
  &lt;/h:panelGrid&gt;
  
  &lt;h:panelGrid columns="2"&gt;
  &lt;h:outputLabel id="showdays" for="uploadFile" value="Upload Document" rendered="#{leaveBean.showUploadText}" /&gt;
  &lt;p:fileUpload id="uploadFile" rendered="#{leaveBean.showUpload}" fileUploadListener="#{leaveController.handleFileUpload}" mode="advanced"
  dragDropSupport="false" sizeLimit="102400"/&gt;
  &lt;/h:panelGrid&gt;
  </code></pre>