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

    Rerender components in parent from rich:modalPanel

    John Doe Newbie


      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:

      <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 name="controls">
       <h:graphicImage value="/img/close.png" styleClass="hidelink" id="hidelink" />
       <rich:componentControl for="aModalPanel" attachTo="hidelink" operation="hide" event="oncomplete" />
       <h:inputTextarea id="textInput" value="#{someProperty}" />
       <a4j:commandButton value="OK"
       onclick="#{rich:component('aModalPanel')}.hide();return false;"

      The dialog:

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