0 Replies Latest reply on Apr 20, 2008 6:42 PM by James Clarke

    RichFaces 3.2.0 - Waiting for listener with modalpanel

    James Clarke Newbie

      I have a command button like this:

      value="Do Something"
      onclick="Richfaces.showModalPanel('waitbox')" />

      and the modal panel looks like this:

      <rich:modalPanel autosized="true" id="waitbox" rendered="true">
       <f:facet name="header">
       <h:outputText value="Please wait..."></h:outputText>
       <h:graphicImage value="/images/wait.gif"/>

      The Bean.process does it stuff and creates a file in a temporary location (the full path to the file and the filename are in Bean.fileloc). Once this file has been created, I want the modalpanel to close and for the file to be sent to the user via a download box - this I have no clue how to perform.

      Can anybody shine a light on what I should be doing, if what I already have is wrong or how to go about doing it (I am willing to read if someone gives me hints and points in the right direction).