title: Wait message for slow JSF page
body: <p>I have a jsf page having a request scope bean. A slow database query is fired in the constructor of the request scope bean. Then, the results of the query are shown in a jsf data table on the web page.</p>
  
  <p>How do I display a wait message until the database query completes?</p>
  
  <p>I tried calling a javascript function for onLoad of  tag. The method is called only after the slow db query executes.</p>