How to display "please wait" message when JSF page is loading
Hi All
since my JSF page takes lot of time to load, i wanted to display "please wait" message when my jsf page is loading.
The problem is i have to render large amount of data. All the DB calls get over quickly but the time taken to compile the jsp and render the data takes time.
All the back end work is done and i could see a white screen and it takes considerable amount of time to render the page, i dont want the white screen instead i need a message to be displayed.
i would be very thankfull for any help....
[548 byte] By [
@VK@a] at [2007-11-27 5:47:49]

# 1
Well, this isn't exactly what you asked for... But it's what I do to cut down on the page rendering times.
What I do is pre-compile all the JSPs in my application. This cuts down on the time a user waits while they load (the first time) greatly. To pre-compile your JSPs, add the following lines to your web.xml for each JSP.
<servlet>
<servlet-name>PageName</servlet-name>
<display-name>PageName</display-name>
<jsp-file>/PageName.jsp</jsp-file>
<load-on-startup>-1</load-on-startup>
</servlet>
This increases the initial start-up time of your web-app in favour of reducing the access time for your first users.
CowKing
PS - I don't know how to create a "please wait" message while your page loads. So this is my best suggestion.