7 Replies Latest reply on Apr 7, 2011 9:31 AM by Tony Tony

    Modal rerender problem

    Tony Tony Newbie

           Hello! I have a problem rerendering a modal panel.


      I have the following command button (tried with ajaxsingle attribute too)

      <a4j:commandButton value="Convert"   action="#{extLinkBean.ConvertAction}"


                                      oncomplete="Richfaces.showModalPanel('modal_DBDataShow')" />



      That executes an action and renders the following modal.


      <rich:modalPanel id="modal_DBDataShow" minHeight="145"

          minWidth="220" width="220" height="145">

                  <f:facet name="controls">


                          <h:graphicImage value="/resources/imgs/modal/close.png"


                              onclick="Richfaces.hideModalPanel('modal_DBDataShow');return false;" />





                  <rich:dataTable id="dtbPars" columns="2" value="#{extLinkBean.lastResultSet.parameters}" var="parm"

                  width="100%" cellpadding="0" cellspacing="0" >







      extLinkBean.lastResultSet.parameters is called and it returns a list with 1 element. But the items of that collections never  fire the "getField" or "getValue" methods.


      The collection (extLinkBean.lastResultSet.parameters) is loaded during "extLinkBean.ConvertAction" execution. I need to rerender the modal after executing that.

      What am I doing wrong?


      Thank you!