2 Replies Latest reply on Jun 2, 2009 7:02 AM by raghu_dev2005

    How to update the changes in main page after closing the rich:modal panel?

    raghu_dev2005
      Hi Everyone !
          I m using rich:modal panel in my application.In the modal panel i m performing an update operation. After the update operation, panel will get close and a message should be displayed. I have placed my message inside a panel grid. The Problem i m facing is that i can't rerender the panel grid...can anyone help me to solve this....Here is the code i m using....
      <rich:modalPanel...>
      ...
         <a4j:commandButton value="Update" data="#{effortPlanHandler.effortPlanModel.effortPlanAuxVo.showUpdate}"
                                                                      action="#{effortPlanHandler.effortCalculated}" oncomplete="if(data ==  'updated')javascript:Richfaces.hideModalPanel('eftcal')" rerender="uptmsg">
      ... 
      <rich:modalPanel>

      and the panel grid to be rerender is .....

      <h:panelGrid columns="3" id="uptmsg" rendered="#{effortPlanHandler.effortPlanModel.effortPlanAuxVo.showUpdate == 'updated'}">
                                              <h:outputText  value = "CRID :"/>
        <h:outputText  value="#{effortPlanHandler.effortPlanModel.effortPlanVo.selectedRowCRID}"/>
                                              <h:outputText  value=" was updated successfully."/>                                      
      </h:panelGrid>

        The noticeable one is , the modal panel will be closed on the "showUpdate" value and it is closing perfectly. But the problem is that the panel grid is not rendered .....