I didn't write the code that does it, but we also use an onclick on every UICommand element for our jsf project.
<h:commandButton onclick="process();" On Fri, Apr 2, 2010 at 11:46 AM, Adrian Mitev <adrian.mi...@googlemail.com> wrote: > This is kinda tricky. I do it using jQuery blockUI plugin and attach > script to onclick of every link/button on the page that shows the > blockui element. > > On Fri, Apr 2, 2010 at 2:12 PM, vale_java_dev > <fabrizi_valent...@yahoo.it> wrote: >> >> Hi! >> >> I need help! >> How can I load a gif animated image while a jsf page is forwarded to >> onother? >> >> I'm using >> >> <BODY onload="document.getElementById('loading').style.display = 'none';"> >> >> <!-- LOADING DIV --> >> <div id="loading" style="position: absolute; width: 100%; text-align: >> center; top: 300px; display: block;"> >> >> ${pageContext.request.contextPath}/resources/images/onLoad/loading.gif >> </div> >> </BODY> >> >> but during the forward this script doesn't work! >> >> Thanks in advance for any suggestions! >> >> Vale >> -- >> View this message in context: >> http://old.nabble.com/Loading-Gif-Animated-While-Loading-A-Jsf-Page-tp28117980p28117980.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > > > -- > Although nobody can come back and make a new start, anyone can start > now and make a new end >