You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by vale_java_dev <fa...@yahoo.it> on 2010/04/02 13:12:56 UTC
Loading Gif Animated While Loading A Jsf Page
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.
Re: Loading Gif Animated While Loading A Jsf Page
Posted by Mike Kienenberger <mk...@gmail.com>.
Unfortunately, I cannot.
On Wed, Apr 7, 2010 at 6:09 AM, Anton Gavazuk <an...@gmail.com> wrote:
> Mike, Adrian,
>
> could you show your approaches in an example?
>
> 2010/4/7 vale_java_dev <fa...@yahoo.it>
>
>>
>> Thanks for the suggestions!
>>
>> Have a nice day, Vale
>> --
>> View this message in context:
>> http://old.nabble.com/Loading-Gif-Animated-While-Loading-A-Jsf-Page-tp28117980p28162529.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
Re: Loading Gif Animated While Loading A Jsf Page
Posted by Anton Gavazuk <an...@gmail.com>.
Mike, Adrian,
could you show your approaches in an example?
2010/4/7 vale_java_dev <fa...@yahoo.it>
>
> Thanks for the suggestions!
>
> Have a nice day, Vale
> --
> View this message in context:
> http://old.nabble.com/Loading-Gif-Animated-While-Loading-A-Jsf-Page-tp28117980p28162529.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
Re: Loading Gif Animated While Loading A Jsf Page
Posted by vale_java_dev <fa...@yahoo.it>.
Thanks for the suggestions!
Have a nice day, Vale
--
View this message in context: http://old.nabble.com/Loading-Gif-Animated-While-Loading-A-Jsf-Page-tp28117980p28162529.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Loading Gif Animated While Loading A Jsf Page
Posted by Mike Kienenberger <mk...@gmail.com>.
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
<ad...@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
> <fa...@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
>
Re: Loading Gif Animated While Loading A Jsf Page
Posted by Adrian Mitev <ad...@googlemail.com>.
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
<fa...@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