File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes preloading message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "preloading message" Watch "preloading message" New topic
Author

preloading message

Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
I have a heavy JSF page and would like to display a preload message till the whole of page will load. Could any one please help me.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 11740

Different browsers handle the delay between load start and load complete in different ways. Any attempt to display a "Loading page" message will have to be written for client-side execution (in JavaScript) and will have to adapt itself to the user's browser.

A lot the of modern-day software development platforms are designed to permit parcelling out work to those with the best aptitude for it. A lot of modern-day business is predicated on making one person do all the work, regardless of aptitude.
Andrey Choe
Greenhorn

Joined: Sep 07, 2010
Posts: 12
Kamila Rutkowski wrote:I have a heavy JSF page and would like to display a preload message till the whole of page will load. Could any one please help me.

Hello,
which jsf implementation do you use? Many implementations have such components...
Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
Andrey Choe wrote:
Kamila Rutkowski wrote:I have a heavy JSF page and would like to display a preload message till the whole of page will load. Could any one please help me.

Hello,
which jsf implementation do you use? Many implementations have such components...



Richfaces and Primefaces.
Athira Vijayan
Greenhorn

Joined: Sep 07, 2010
Posts: 2
Hello,

While requesting for the jsf page you can call a javascript function in the onsubmit or any other event..display the preload message inside the model panel.while completing the request it ll close the model panel using another javascript oncomplete event.

i ll give a sample code






Regards,
Athira
Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
Athira Vijayan wrote:Hello,

While requesting for the jsf page you can call a javascript function in the onsubmit or any other event..display the preload message inside the model panel.while completing the request it ll close the model panel using another javascript oncomplete event.

i ll give a sample code






Regards,
Athira



But I mean during the loading time to load page completely at first time of visiting.
Athira Vijayan
Greenhorn

Joined: Sep 07, 2010
Posts: 2
hi,

Can you do something like this.When first time that request came you can redirect to another small jsp page which have the preloaded message inside a model panel with an ok button.while click on the ok button load the original jsp page.



Regards,
Athira
Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
Athira Vijayan wrote:hi,

Can you do something like this.When first time that request came you can redirect to another small jsp page which have the preloaded message inside a model panel with an ok button.while click on the ok button load the original jsp page.



Regards,
Athira


I think you don't get my goal. My JSF page (based on Facelets) needs some seconds to load completely and this is not an user friendly thing!
I would like to show my end user a preloading message during these seconds.
 
 
subject: preloading message
 
developer file tools