0 Replies Latest reply on Jul 18, 2007 3:27 AM by Yevgen Tester

    modalPanel -> update parent after close

    Yevgen Tester Newbie

      Hi,

      i have a problem. I don't know how update my parent view.

      For example.

      
      <rich:modalpanel id="panel">
       ...
      </rich:modalpanel>
      
      <h:form id="form">
       <rich:datatable id="table">
       ---
       </rich:datatable>
      
       <a4j:commandButton value="test"
       reRender="panel"
      oncomplete="Richfaces.showModalPanel('panel')"
       </a4j:commandButton>
      <h:/form>
      
      


      So if i clicked the button test the modal panel showed. I change something. Press OK (on modal panel), and now i need to refresh my table. How?
      rerender on the commandbutton - too late. So i need something like rerender, but after the panel is closed.

      The problem that the panel doesn't know about any other components (table for example).

      Is it possible to solve my problem?

      Thanks.