Scott,
I implemented a simple technique for doing this using an onclick
javascript, my JSF button has this action:
<tr:commandLink id="next" onclick="wait()"
action="#{courseRegister.coursePay}" immediate="true">
<tr:image source="images/btn_register_130x36.gif"/>
</tr:commandLink>
my wait script looks like this:
<script type="text/javascript">
function wait() {
document.getElementById("main").style.visibility="hidden";
document.getElementById("wait").style.visibility="visible";
window.setTimeout('showProgress()', 500);
}
function showProgress(){
var wg = document.getElementById("waitgif");
wg.src=wg.src;
}
</script>
which you can see makes a previously hidden DIV visible while hiding the
visible one. The newly visible DIV contains an animated GIF which stays
on the screen until the background bean is finished processing and
control passes to the success page.
Mark
Jasper Huzen wrote:
If I understood your problem right, i think that it can be done with
javascript, and i think the dojotoolkit can handle this for you. Maybe you
should check dojotoolkit.org.
Scott Purcell-3 wrote:
Hello,
I am still debating on a framework for a project. Part of my hesitation
is that I would like to be able to put a "pleaseWait" type of message on
some specific pages like checkout. Previously I run into a lot of issues
where people hit these buttons twice, or do reloads.
Anyway, I am only aware of WW that supports that type of interceptor.
Does Struts 1.x, or Spring support such a mechanism? I went through the
spring book last evening, and didn't come across anything like that with
their MVC software.
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]