You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2007/07/09 10:39:26 UTC

[jira] Resolved: (TILES-192) JSP pages not being flushed with request

     [ https://issues.apache.org/struts/browse/TILES-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli resolved TILES-192.
------------------------------------

    Resolution: Fixed

Now the "flush" attribute is correctly used.
Added selenium tests.

> JSP pages not being flushed with <tiles:insertAttribute ... flush="true"/> request
> ----------------------------------------------------------------------------------
>
>                 Key: TILES-192
>                 URL: https://issues.apache.org/struts/browse/TILES-192
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-jsp (jsp support)
>    Affects Versions: 2.0.4
>         Environment: Test Server environment: OS Solaris 10, IBM WebSphere v6.1 application server, JDK 1.5. Client: IE 6.0, Windows XP.
>            Reporter: Victor Voronenko
>            Assignee: Antonio Petrelli
>             Fix For: 2.0.5
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.