2 Replies Latest reply on Mar 8, 2007 9:27 AM by Julien Martin

    HourGlass/Status for the whole page

    Julien Martin Expert

      Hello and congratulations for going OS!

      I am looking for a design pattern that would allow me to display an houglass or statut message on the whole page while it is loading. My page is as follows:

      <%@page contentType="text/html"%>
      <%@page pageEncoding="UTF-8"%>
      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      <%@taglib prefix="a4j" uri="https://ajax4jsf.dev.java.net/ajax"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css"/>
       <div id="container">
       <a4j:region id="region" selfRendered="true">
       <a4j:outputPanel layout="block" styleClass="box">
       <a4j:status startText="Please wait..." stopText="Idle/Done"/>
       <br /><br />
       <jsp:include page="includes/debugInfo.jsp"/>
       <br /><br />
       <h:form id="formOne">
       <jsp:include page="includes/tradeDetails.jsp"/>
       <jsp:include page="includes/tradeClientsAndQuantities.jsp"/>

      the line here:
      <jsp:include page="includes/tradeDetails.jsp"/>
      is taking ages to load and there is not much I can do to improve this behavior.

      How can I display an animated gif on the whole page whilst the page is loading??????

      Thanks in advance,