You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/03/01 16:28:59 UTC

DO NOT REPLY [Bug 17562] New: - Sub-Tiles not rendered correctly in 1.1b2 and 1.1RC1

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17562>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17562

Sub-Tiles not rendered correctly in 1.1b2 and 1.1RC1

           Summary: Sub-Tiles not rendered correctly in 1.1b2 and 1.1RC1
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: jerome.jacobsen@gentootech.com


After upgrading from Struts 1.1b2 to 1.1RC1 many of my Tiles based pages would 
render incorrectly.  I've created a simple example to illustrate this behavior.

In 1.1b2 it renders correctly like this:

Testing Sub-tiles
TILE_A  TILE_B  

In 1.1RC1 it renders incorrectly like this:

TILE_A  TILE_B  
Testing Sub-tiles

The entry JSP, called subtiles.jsp, looks like this:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title>Sub-Tiles Test</title>
</head>
<body>
<h1>Testing Sub-tiles</h1>
<tiles:insert page="tilestable.jsp" flush="true">
 <tiles:put name="cellone">
  <tiles:insert page="tilea.jsp" flush="true"/>
 </tiles:put>
 <tiles:put name="celltwo">
  <tiles:insert page="tileb.jsp" flush="true"/>
 </tiles:put>
</tiles:insert>
</body>
</html>

The tilestable.jsp looks like this:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:useAttribute name="cellone"/>
<tiles:useAttribute name="celltwo"/>
<table border="0" cellpadding="4" cellspacing="4">
 <tr>
  <td><%= cellone %></td>
  <td><%= celltwo %></td>
 </tr>
</table>

And tilea.jsp is shown below:

<%@ page contentType="text/html"%>
TILE_A

Followed by tileb.jsp here:

<%@ page contentType="text/html"%>
TILE_B

I searched the struts-user list archives and found a thread titled "Odd Tiles 
Behavior with 2003-01-01 Nightly Build".  Cedric Dumoulin had indicated to the 
poster reporting the problem to file a bug in Bugzilla.  However I've found no 
such bug report.

Here's the link to Cedric's response:
http://shorl.com/gybrypryvabyga

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org