-
1. Re: Please wait message for slow servers
mcoffin Apr 7, 2008 6:04 PM (in response to pete007)If your using richfaces have a look at a4j:status. There's an example in the richfaces demo.
-
2. Re: Please wait message for slow servers
pete007 Apr 7, 2008 10:26 PM (in response to pete007)Hi, thanks for your tip. I tried it, but can't get it to work, because my links look like this:
<s:link view="/lecturesbyroom.xhtml"> <h:graphicImage value="mainmenu_firstitem.png"/> <f:param name="eventDay" value="#{currentDateTime.date}"/> </s:link>
And I am not sure, if it will work, when I switch from one page to another one.
Isn't there an easier way to solve it by assigning some attribute to s:link to call a javascript function additionally, that shows up the div?
-
3. Re: Please wait message for slow servers
mail.micke Apr 7, 2008 10:47 PM (in response to pete007) -
4. Re: Please wait message for slow servers
pete007 Apr 8, 2008 5:44 AM (in response to pete007)Okay, thanks, now I got it working. I didn't realize, that you can give the s:link a parameter
onclick
, sorry.To complete this topic, here is my solution in a nutshell:
<s:link onclick="showBusy()" ..
<style type="text/css"> #busy { visibility: hidden; } </style>
<script type="text/javascript"> function showBusy() { document.getElementById("busy").style.visibility = "visible"; } </script>
<h:graphicImage value="busy.png" id="busy"/>
I added the parameter to all s:links by a global replace, placed the image at the bottom of my main-layout and added the style- and script-sections to the main-layout. Works perfect!
Thanks a lot, Pete