Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-192

JSP pages not being flushed with <tiles:insertAttribute ... flush="true"/> request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4
    • 2.0.5
    • None
    • Test Server environment: OS Solaris 10, IBM WebSphere v6.1 application server, JDK 1.5. Client: IE 6.0, Windows XP.

    • Important

    Description

      User tried to build the result page of three pieces: banner JSP, body JSP and footer JSP. The header contained initially visible DIV with the warning of possible slow processing. The footer was supposed to be loaded after processing by a middle JSP is complete and make the DIV invisible.
      The master definition file looks like this:

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <!DOCTYPE tiles-definitions PUBLIC
      "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
      "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
      <definition name="RevenueTrend" template="/loadingLayout.jsp">
      <put-attribute name="title" value="Revenue Trend Report"/>
      <put-attribute name="banner" value="/Headerloading.jsp"/>
      <put-attribute name="body" value="/RevTrendReport.jsp"/>
      <put-attribute name="footer" value="/Footerloading.jsp"/>
      </definition>
      </tiles-definitions>

      The layout file is the following:

      <%@ page language="java" session="true" errorPage="error.jsp"%>
      <%@ page contentType="text/html;charset=UTF-8" %>
      <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
      <link rel="stylesheet" type="text/css" href="app.css"/>
      <title>
      <tiles:getAsString name="title"/>
      </title>
      </head>
      <body bgcolor="#FFFFFF" onload="startup()">
      <tiles:insertAttribute name="banner" flush="true"/>
      <tiles:insertAttribute name="body" flush="false"/>
      <tiles:insertAttribute name="footer" flush="false"/>
      </body>
      </html>

      These two are fragments from the banner and a footer JSP's:
      <!-- banner -->
      <div id="slowloading" align="left" style="POSITION: relative">
      <h1><font color="orange">Loading, please wait...</font></h1>
      </div>
      <!-- footer -->
      <script language="JavaScript">
      if (IE5)

      { if (isValid(document.all.slowloading.style)) document.all.slowloading.style.display = 'none'; }

      </script>

      Attachments

        Issue Links

          Activity

            People

              brenmcguire Antonio Petrelli
              voronv Victor Voronenko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: