Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

preloading message

 
Kamila Rutkowski
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Andrey Choe
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic