-
1. Re: Seam Please Wait ...
asookazian Aug 14, 2009 12:25 AM (in response to nicevision2020)In RichFaces we use rich:modalPanel and a4j:status. Works great.
<rich:modalPanel id="mpWait" style="text-align:center" height="100" width="150"> <h:form> <h:panelGrid> <h:outputText value="Please wait..." style="font-weight:bold;font-size:large"/> <rich:spacer height="20"/> <h:graphicImage value="/img/spinner.gif"/> </h:panelGrid> </h:form> </rich:modalPanel> <a4j:status id="actionStatus" onstart="Richfaces.showModalPanel('mpWait')" onstop="Richfaces.hideModalPanel('mpWait')"/>
-
2. Re: Seam Please Wait ...
kiekie96 Aug 14, 2009 11:27 AM (in response to nicevision2020)Hi Arbi how do you link s:link or h:commandbutton to a4j:status ? so where link or button onclick, the modal panel showed up and when the process on backing bean finished modal panel hide automatically?
-
3. Re: Seam Please Wait ...
nicevision2020 Aug 14, 2009 4:16 PM (in response to nicevision2020)I did some sample it works for form but not for s:link. It throws an error A4J ...
If i am not wrong, I think A4J status works only for the form. I did the A4J region. But the status doesnt work.
-
4. Re: Seam Please Wait ...
asookazian Aug 14, 2009 5:28 PM (in response to nicevision2020)
Kiekie Loebiz wrote on Aug 14, 2009 11:27:
Hi Arbi how do you link s:link or h:commandbutton to a4j:status ? so where link or button onclick, the modal panel showed up and when the process on backing bean finished modal panel hide automatically?You do not link it to the a4j:status. The a4j:status onstart and onstop events are processed when there is an AJAX request/response cycle. So that means you need to use a4j:commandButton to submit your form rather than h:commandButton.
What I do is add the above xhtml code to a separate facelet and then include that facelet in every JSF page (facelet) that needs that functionality. It should work automatically with no additional wiring.
Read more about this solution in Practical RichFaces book.
-
5. Re: Seam Please Wait ...
nicevision2020 Aug 18, 2009 10:02 PM (in response to nicevision2020)Thanks for your reply. I will try...
-
6. Re: Seam Please Wait ...
jguglielmin Aug 19, 2009 7:36 PM (in response to nicevision2020)As for ICEfaces...the simplest solution is to use the outputResource component to handle the download and the outputProgress to show that something is going on during the request. If you want a progress bar/message while the file is being readied, that would probably involve a bit more complexity and I would suggest posting to the ICEfaces forum with request for ideas/examples. This might be something to add to the outputResource component (similar to the inputFile component which has the option to use the progressMonitor component with it) and you could possibly open a jira for this enhancement.