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}"

                                      reRender="modal_DBDataShow"

                                      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:panelGroup>

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

                              styleClass="hidelink"

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

                      </h:panelGroup>

                  </f:facet>

                  <a4j:region>

       

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

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

                      <h:outputText>#{parm.field.table.tablename}.#{parm.field.fieldname}</h:outputText>

                      <h:outputText>#{parm.value}</h:outputText>

                  </rich:dataTable>

       

              </rich:modalPanel>

       

      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!