1 Reply Latest reply on Jul 31, 2009 3:25 AM by ilya_shaikovsky

    Rerender components in parent from rich:modalPanel

      Hi,

      I want to rerender some components in my form when hide() is called on the modalPanel.

      Unfortunatelly, this does not work. The backing bean receives the right value, but the rerendering does not work.

      Can someone please provide a quick example?

      Here is my modal-Panel:

      <4j:region>
      <rich:modalPanel id="aModalPanel" autosized="true" width="200" domElementAttachment="form">
      
       <f:facet name="header">
       <h:outputText value="Do Stuff" style="padding-right:15px;" />
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/img/close.png" styleClass="hidelink" id="hidelink" />
       <rich:componentControl for="aModalPanel" attachTo="hidelink" operation="hide" event="oncomplete" />
       </h:panelGroup>
       <h:inputTextarea id="textInput" value="#{someProperty}" />
      
       <a4j:commandButton value="OK"
       action="#{control.something}"
       onclick="#{rich:component('aModalPanel')}.hide();return false;"
       reRender="dialog">
       </a4j:commandButton>
      
      </rich:modalPanel>
      </a4j:region>


      The dialog:

      <a4j:outputPanel id="dialog" ajaxRendered="true" width="700px">
       <h:inputText id="somethingX" value="#{someProperty}" />
      </a4j:outputPanel>