| 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: 14568
|
|
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.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
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
|
|
|