This content has been marked as final.
Show 3 replies
-
1. Re: How to change mouse cursor with a4j:status
baz Sep 12, 2008 4:10 AM (in response to baz)Have found something...
First there is this wiki page http://wiki.jboss.org/wiki/RichFacesPleaseWaitBox
Second, you can define javascript functions like this:function setWait(){ document.body.style.cursor = 'wait'; } function setDefault(){ document.body.style.cursor = 'default'; }
And call a4j:status with attributes onstart and onstop set accordingly. But with this solution any element, that sets the cursor explicitly, will prevent the cursor from changing into the wait state:-(
But better than nothing... -
2. Re: How to change mouse cursor with a4j:status
shadowcreeper Sep 12, 2008 2:21 PM (in response to baz)You might also try something like this:
<a4j:status id="mainStatusPanel"> <f:facet name="start"> <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: wait; background-color: transparent;"> </div> </f:facet> </a4j:status>
-
3. Re: How to change mouse cursor with a4j:status
shadowcreeper Sep 12, 2008 2:22 PM (in response to baz)Oops, I forgot the z-index CSS attribute, but you get the idea...