0 Replies Latest reply on May 14, 2008 11:19 PM by infinity2heaven

    how a richfaces modalPanel preloaded with action results

    infinity2heaven Novice

      I have a rich:dataTable working fine with data loaded from SFSB's action method. The first column in the datatable row has an has a link,


      <a href="#" onclick="JavaScript:Richfaces.showModalPanel('panelId',{width:350, top:110})">details</a>



      <rich:modalPanel id="panelId" minHeight="100" minWidth="350" height="100" width="350" zindex="6000">
         <f:facet name="header">
           <h:outputText value="Add New Fund" />
          </f:facet>
          <f:facet name="controls">
           <h:graphicImage value="./img/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('nf1')" />
           </f:facet>
           <ui:include src="Details.xhtml" />
      </rich:modalPanel><br/> 


                     
      Details.xhtml is simple rich:dataTable.


      This would show the as a modal panel. So far, its working but the requirement is that I need to call the SFSB's action method to load the DataModel for Details.xhtml before it pops out. How do I do that?


      If it was the classic master-detail, then booking example suits fine with a redirect to Details.xhtml in pages.xml, but the detail for me, is in the popup and I DONT need a redirect.