• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

preloading message

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27819
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic