You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Gregg Leichtman (JIRA)" <ji...@apache.org> on 2006/09/24 19:59:33 UTC

[jira] Created: (SB-47) Output Defined Within Tile is Rendered Outside Tile

Output Defined Within Tile is Rendered Outside Tile
---------------------------------------------------

                 Key: SB-47
                 URL: http://issues.apache.org/struts/browse/SB-47
             Project: Sandbox
          Issue Type: Bug
          Components: Tiles
         Environment: gsl@aragorn:~> uname -a
Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
Suse 9.3
Apache 2.0.53-9.12 with Tomcat 4.1.30-3
and also on my ISP running under Linux with kernel 2.6.17.4-grsec on i686
Apache 1.3.37 with Tomcat 5.5.17

            Reporter: Gregg Leichtman


I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):

    tiles-core-2.0-SNAPSHOT-20060922.jar

Specifically, some types of output from a tile do not seem to stay
within the tile itself. There seems to be a buffering issue. I have
tried to as briefly as possible to indicate the problem below where I
show the welcome page, tiles-defs.xml file, the layout page and an
affected tile page. I have temporarily placed a webapp at:

    http://www.lansdaletutoring.com/tilesbug

that demonstrates the problem and can make the war file available if
desired.

The key file contents follow (or at least what I currently believe to be
key):

tiles-defs.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

 <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
       "http://struts.apache.org/dtds/tiles-config_1_1.dtd">


<tiles-definitions>

        <!-- Display Definitions -->
   
    <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
        <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
        <put name="header" value="/tiles/headerTile.jsp"/>
        <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
        <put name="footer" value="/tiles/footerTile.jsp"/>
    </definition>

    <definition name="/welcomePage" extends="/mainLayout">
        <put name="content" type="template" value="/tiles/homeTile.jsp"/>
    </definition>

</tiles-definitions>

---------------------------------------------------------------------------------------------------------
index.jsp:

<jsp:forward page="/welcomePage.faces"/>

---------------------------------------------------------------------------------------------------------

siteLayout.jsp:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<html lang="en">
<f:view>
    <head>
        <base
href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
       
        <!-- There seems to be a bug in the tiles core where placeing
the title
             inside the tile causes the title output text to be place
OUTSIDE
             the title tags. Placing it here seems to avoid the problem.
         -->
        <!-- title --><!-- h:outputText value="This is a title that
causes a tiles core failure."/ --><!-- /title -->
        <tiles:get name="htmlHeader" flush="false"/>
    </head>
   
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
style="margin:0;padding:0">

        <!-- Header and Menu -->
        <tiles:get name="header" flush="false"/>

        <table border="0" cellspacing="10" cellpadding="0" align="left">
            <tr>
                <td valign="Top" height="150">
                    <tiles:get name="content" flush="false"/>
                </td>
                <td width="190" align="center" valign="top">
                    <tiles:get name="rightSideBar" flush="false"/>
                </td>
            </tr>
            <tr>
                <td>
                    <tiles:get name="footer" flush="false"/>
                </td>
                <td valign="Top" height="100"> </td>
            </tr>
        </table>
    </body>
</f:view>
</html>

---------------------------------------------------------------------------------------------------------

htmlHeaderTile.jsp:

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
12/20/2002">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="description" content='A description'>
<meta name="keywords" content='keyword1 keyword2'>
<meta name="robots" content="index,follow">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

   
        <!-- There seems to be a bug in the tiles core where placing the
title
             inside the tile causes the title output text to be placed
OUTSIDE
             the title tags shown below. Placing the title outside this
tile
             in the layout page siteLayout.jsp seems to avoid the problem.
         -->
        <title><h:outputText value="This is a title that appears to
cause a tiles core failure. If you view the html page source you will
notice that it has been placed outside the title tags. This problem
occurs for graphicImage tags inside commandLink tags as well."/></title>

---------------------------------------------------------------------------------------------------------

If you take a look at the welcome page html source at the client end
once the page is displayed, you get:

<html lang="en">

        <head>





                <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
               
                <!-- There seems to be a bug in the tiles core where placeing the title
                         inside the tile causes the title output text to be place OUTSIDE
                         the title tags. Placing it here seems to avoid the problem.
                 -->
                <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
                This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.




<meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="description" content='A description'>
<meta name="keywords" content='keyword1 keyword2'>
<meta name="robots" content="index,follow">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

               
                <!-- There seems to be a bug in the tiles core where placing the title
                         inside the tile causes the title output text to be placed OUTSIDE
                         the title tags shown below. Placing the title outside this tile
                         in the layout page siteLayout.jsp seems to avoid the problem.
                 -->
                <title></title>

        </head>
       
        <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">

                <!-- Header and Menu -->
               



<br>
<pre>
<!--

     This is a blank Tiles definition file with a commented example.

-->


Some header text.

</pre>

                <table border="0" cellspacing="10" cellpadding="0" align="left">
                        <tr>
                                <td valign="Top" height="150">
                                       




<h1 align="center">Content Tile!</h1>
<div>
        <p>
                A paragraph of content.
        <p>
                A second paragraph of content.
        <p>
                A third paragraph of content.
</div>


                                </td>

                                <td width="190" align="center" valign="top">
                                       

This is a righthand side bar.
                                </td>
                        </tr>
                        <tr>
                                <td>
                                       


<hr size="1" width="75%">
This is some footer text.

                                </td>
                                <td valign="Top" height="100"> </td>

                        </tr>
                </table>
        </body>

</html>


Notice that the title text ends up outside the html title tags and
apparently outside the tile itself. This problem is occurring in a
number of places in several different tiles in my webapp and makes it
pretty much impossible for me to create valid faces pages. 

I am using the following libs:

-rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
-rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
-rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
-rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
-rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
-rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
-rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
-rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
-rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
-rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
-rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
-rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
-rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
-rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
-rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
-rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
-rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SB-47) Output Defined Within Tile is Rendered Outside Tile

Posted by "Gregg Leichtman (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SB-47?page=all ]

Gregg Leichtman updated SB-47:
------------------------------

    Description: 
I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):

    tiles-core-2.0-SNAPSHOT-20060922.jar

Specifically, some types of output from a tile do not seem to stay
within the tile itself. There seems to be a buffering issue. I have
tried to as briefly as possible to indicate the problem below where I
show the welcome page, tiles-defs.xml file, the layout page and an
affected tile page. I have temporarily placed a webapp at:

    http://www.lansdaletutoring.com/tilesbug

that demonstrates the problem and I have attached the complete source and config files sans libs. The list of libs used is described below.

The key file contents follow (or at least what I currently believe to be
key):

tiles-defs.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

 <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
       "http://struts.apache.org/dtds/tiles-config_1_1.dtd">


<tiles-definitions>

        <!-- Display Definitions -->
   
    <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
        <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
        <put name="header" value="/tiles/headerTile.jsp"/>
        <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
        <put name="footer" value="/tiles/footerTile.jsp"/>
    </definition>

    <definition name="/welcomePage" extends="/mainLayout">
        <put name="content" type="template" value="/tiles/homeTile.jsp"/>
    </definition>

</tiles-definitions>

---------------------------------------------------------------------------------------------------------
index.jsp:

<jsp:forward page="/welcomePage.faces"/>

---------------------------------------------------------------------------------------------------------

siteLayout.jsp:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<html lang="en">
<f:view>
    <head>
        <base
href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
       
        <!-- There seems to be a bug in the tiles core where placeing
the title
             inside the tile causes the title output text to be place
OUTSIDE
             the title tags. Placing it here seems to avoid the problem.
         -->
        <!-- title --><!-- h:outputText value="This is a title that
causes a tiles core failure."/ --><!-- /title -->
        <tiles:get name="htmlHeader" flush="false"/>
    </head>
   
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
style="margin:0;padding:0">

        <!-- Header and Menu -->
        <tiles:get name="header" flush="false"/>

        <table border="0" cellspacing="10" cellpadding="0" align="left">
            <tr>
                <td valign="Top" height="150">
                    <tiles:get name="content" flush="false"/>
                </td>
                <td width="190" align="center" valign="top">
                    <tiles:get name="rightSideBar" flush="false"/>
                </td>
            </tr>
            <tr>
                <td>
                    <tiles:get name="footer" flush="false"/>
                </td>
                <td valign="Top" height="100"> </td>
            </tr>
        </table>
    </body>
</f:view>
</html>

---------------------------------------------------------------------------------------------------------

htmlHeaderTile.jsp:

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
12/20/2002">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="description" content='A description'>
<meta name="keywords" content='keyword1 keyword2'>
<meta name="robots" content="index,follow">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

   
        <!-- There seems to be a bug in the tiles core where placing the
title
             inside the tile causes the title output text to be placed
OUTSIDE
             the title tags shown below. Placing the title outside this
tile
             in the layout page siteLayout.jsp seems to avoid the problem.
         -->
        <title><h:outputText value="This is a title that appears to
cause a tiles core failure. If you view the html page source you will
notice that it has been placed outside the title tags. This problem
occurs for graphicImage tags inside commandLink tags as well."/></title>

---------------------------------------------------------------------------------------------------------

If you take a look at the welcome page html source at the client end
once the page is displayed, you get:

<html lang="en">

        <head>





                <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
               
                <!-- There seems to be a bug in the tiles core where placeing the title
                         inside the tile causes the title output text to be place OUTSIDE
                         the title tags. Placing it here seems to avoid the problem.
                 -->
                <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
                This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.




<meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="description" content='A description'>
<meta name="keywords" content='keyword1 keyword2'>
<meta name="robots" content="index,follow">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

               
                <!-- There seems to be a bug in the tiles core where placing the title
                         inside the tile causes the title output text to be placed OUTSIDE
                         the title tags shown below. Placing the title outside this tile
                         in the layout page siteLayout.jsp seems to avoid the problem.
                 -->
                <title></title>

        </head>
       
        <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">

                <!-- Header and Menu -->
               



<br>
<pre>
<!--

     This is a blank Tiles definition file with a commented example.

-->


Some header text.

</pre>

                <table border="0" cellspacing="10" cellpadding="0" align="left">
                        <tr>
                                <td valign="Top" height="150">
                                       




<h1 align="center">Content Tile!</h1>
<div>
        <p>
                A paragraph of content.
        <p>
                A second paragraph of content.
        <p>
                A third paragraph of content.
</div>


                                </td>

                                <td width="190" align="center" valign="top">
                                       

This is a righthand side bar.
                                </td>
                        </tr>
                        <tr>
                                <td>
                                       


<hr size="1" width="75%">
This is some footer text.

                                </td>
                                <td valign="Top" height="100"> </td>

                        </tr>
                </table>
        </body>

</html>

Notice that the title text ends up outside the html title tags and
apparently outside the tile itself. This problem is occurring in a
number of places in several different tiles in my webapp and makes it
pretty much impossible for me to create valid faces pages. 

I am using the following libs:

-rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
-rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
-rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
-rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
-rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
-rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
-rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
-rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
-rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
-rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
-rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
-rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
-rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
-rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
-rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
-rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
-rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar


  was:
I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):

    tiles-core-2.0-SNAPSHOT-20060922.jar

Specifically, some types of output from a tile do not seem to stay
within the tile itself. There seems to be a buffering issue. I have
tried to as briefly as possible to indicate the problem below where I
show the welcome page, tiles-defs.xml file, the layout page and an
affected tile page. I have temporarily placed a webapp at:

    http://www.lansdaletutoring.com/tilesbug

that demonstrates the problem and can make the war file available if
desired.

The key file contents follow (or at least what I currently believe to be
key):

tiles-defs.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

 <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
       "http://struts.apache.org/dtds/tiles-config_1_1.dtd">


<tiles-definitions>

        <!-- Display Definitions -->
   
    <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
        <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
        <put name="header" value="/tiles/headerTile.jsp"/>
        <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
        <put name="footer" value="/tiles/footerTile.jsp"/>
    </definition>

    <definition name="/welcomePage" extends="/mainLayout">
        <put name="content" type="template" value="/tiles/homeTile.jsp"/>
    </definition>

</tiles-definitions>

---------------------------------------------------------------------------------------------------------
index.jsp:

<jsp:forward page="/welcomePage.faces"/>

---------------------------------------------------------------------------------------------------------

siteLayout.jsp:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<html lang="en">
<f:view>
    <head>
        <base
href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
       
        <!-- There seems to be a bug in the tiles core where placeing
the title
             inside the tile causes the title output text to be place
OUTSIDE
             the title tags. Placing it here seems to avoid the problem.
         -->
        <!-- title --><!-- h:outputText value="This is a title that
causes a tiles core failure."/ --><!-- /title -->
        <tiles:get name="htmlHeader" flush="false"/>
    </head>
   
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
style="margin:0;padding:0">

        <!-- Header and Menu -->
        <tiles:get name="header" flush="false"/>

        <table border="0" cellspacing="10" cellpadding="0" align="left">
            <tr>
                <td valign="Top" height="150">
                    <tiles:get name="content" flush="false"/>
                </td>
                <td width="190" align="center" valign="top">
                    <tiles:get name="rightSideBar" flush="false"/>
                </td>
            </tr>
            <tr>
                <td>
                    <tiles:get name="footer" flush="false"/>
                </td>
                <td valign="Top" height="100"> </td>
            </tr>
        </table>
    </body>
</f:view>
</html>

---------------------------------------------------------------------------------------------------------

htmlHeaderTile.jsp:

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
12/20/2002">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="description" content='A description'>
<meta name="keywords" content='keyword1 keyword2'>
<meta name="robots" content="index,follow">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

   
        <!-- There seems to be a bug in the tiles core where placing the
title
             inside the tile causes the title output text to be placed
OUTSIDE
             the title tags shown below. Placing the title outside this
tile
             in the layout page siteLayout.jsp seems to avoid the problem.
         -->
        <title><h:outputText value="This is a title that appears to
cause a tiles core failure. If you view the html page source you will
notice that it has been placed outside the title tags. This problem
occurs for graphicImage tags inside commandLink tags as well."/></title>

---------------------------------------------------------------------------------------------------------

If you take a look at the welcome page html source at the client end
once the page is displayed, you get:

<html lang="en">

        <head>





                <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
               
                <!-- There seems to be a bug in the tiles core where placeing the title
                         inside the tile causes the title output text to be place OUTSIDE
                         the title tags. Placing it here seems to avoid the problem.
                 -->
                <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
                This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.




<meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="description" content='A description'>
<meta name="keywords" content='keyword1 keyword2'>
<meta name="robots" content="index,follow">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

               
                <!-- There seems to be a bug in the tiles core where placing the title
                         inside the tile causes the title output text to be placed OUTSIDE
                         the title tags shown below. Placing the title outside this tile
                         in the layout page siteLayout.jsp seems to avoid the problem.
                 -->
                <title></title>

        </head>
       
        <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">

                <!-- Header and Menu -->
               



<br>
<pre>
<!--

     This is a blank Tiles definition file with a commented example.

-->


Some header text.

</pre>

                <table border="0" cellspacing="10" cellpadding="0" align="left">
                        <tr>
                                <td valign="Top" height="150">
                                       




<h1 align="center">Content Tile!</h1>
<div>
        <p>
                A paragraph of content.
        <p>
                A second paragraph of content.
        <p>
                A third paragraph of content.
</div>


                                </td>

                                <td width="190" align="center" valign="top">
                                       

This is a righthand side bar.
                                </td>
                        </tr>
                        <tr>
                                <td>
                                       


<hr size="1" width="75%">
This is some footer text.

                                </td>
                                <td valign="Top" height="100"> </td>

                        </tr>
                </table>
        </body>

</html>


Notice that the title text ends up outside the html title tags and
apparently outside the tile itself. This problem is occurring in a
number of places in several different tiles in my webapp and makes it
pretty much impossible for me to create valid faces pages. 

I am using the following libs:

-rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
-rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
-rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
-rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
-rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
-rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
-rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
-rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
-rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
-rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
-rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
-rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
-rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
-rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
-rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
-rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
-rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar


    Environment: 
gsl@aragorn:~> uname -a
Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
Suse 9.3
Apache 2.0.53-9.12 with Tomcat 4.1.30-3
gsl@aragorn:~> java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

and also on my ISP
running under Linux with kernel 2.6.17.4-grsec on i686
Apache 1.3.37 with Tomcat 5.5.17


  was:
gsl@aragorn:~> uname -a
Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
Suse 9.3
Apache 2.0.53-9.12 with Tomcat 4.1.30-3
and also on my ISP running under Linux with kernel 2.6.17.4-grsec on i686
Apache 1.3.37 with Tomcat 5.5.17



Added more environment info.

> Output Defined Within Tile is Rendered Outside Tile
> ---------------------------------------------------
>
>                 Key: SB-47
>                 URL: http://issues.apache.org/struts/browse/SB-47
>             Project: Sandbox
>          Issue Type: Bug
>          Components: Tiles
>         Environment: gsl@aragorn:~> uname -a
> Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
> Suse 9.3
> Apache 2.0.53-9.12 with Tomcat 4.1.30-3
> gsl@aragorn:~> java -version
> java version "1.5.0_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
> and also on my ISP
> running under Linux with kernel 2.6.17.4-grsec on i686
> Apache 1.3.37 with Tomcat 5.5.17
>            Reporter: Gregg Leichtman
>         Attachments: tilesbug.tar.bz2
>
>
> I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):
>     tiles-core-2.0-SNAPSHOT-20060922.jar
> Specifically, some types of output from a tile do not seem to stay
> within the tile itself. There seems to be a buffering issue. I have
> tried to as briefly as possible to indicate the problem below where I
> show the welcome page, tiles-defs.xml file, the layout page and an
> affected tile page. I have temporarily placed a webapp at:
>     http://www.lansdaletutoring.com/tilesbug
> that demonstrates the problem and I have attached the complete source and config files sans libs. The list of libs used is described below.
> The key file contents follow (or at least what I currently believe to be
> key):
> tiles-defs.xml:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>  <!DOCTYPE tiles-definitions PUBLIC
>        "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>        "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
> <tiles-definitions>
>         <!-- Display Definitions -->
>    
>     <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
>         <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
>         <put name="header" value="/tiles/headerTile.jsp"/>
>         <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
>         <put name="footer" value="/tiles/footerTile.jsp"/>
>     </definition>
>     <definition name="/welcomePage" extends="/mainLayout">
>         <put name="content" type="template" value="/tiles/homeTile.jsp"/>
>     </definition>
> </tiles-definitions>
> ---------------------------------------------------------------------------------------------------------
> index.jsp:
> <jsp:forward page="/welcomePage.faces"/>
> ---------------------------------------------------------------------------------------------------------
> siteLayout.jsp:
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
> <html lang="en">
> <f:view>
>     <head>
>         <base
> href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>        
>         <!-- There seems to be a bug in the tiles core where placeing
> the title
>              inside the tile causes the title output text to be place
> OUTSIDE
>              the title tags. Placing it here seems to avoid the problem.
>          -->
>         <!-- title --><!-- h:outputText value="This is a title that
> causes a tiles core failure."/ --><!-- /title -->
>         <tiles:get name="htmlHeader" flush="false"/>
>     </head>
>    
>     <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
> style="margin:0;padding:0">
>         <!-- Header and Menu -->
>         <tiles:get name="header" flush="false"/>
>         <table border="0" cellspacing="10" cellpadding="0" align="left">
>             <tr>
>                 <td valign="Top" height="150">
>                     <tiles:get name="content" flush="false"/>
>                 </td>
>                 <td width="190" align="center" valign="top">
>                     <tiles:get name="rightSideBar" flush="false"/>
>                 </td>
>             </tr>
>             <tr>
>                 <td>
>                     <tiles:get name="footer" flush="false"/>
>                 </td>
>                 <td valign="Top" height="100"> </td>
>             </tr>
>         </table>
>     </body>
> </f:view>
> </html>
> ---------------------------------------------------------------------------------------------------------
> htmlHeaderTile.jsp:
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
> 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>    
>         <!-- There seems to be a bug in the tiles core where placing the
> title
>              inside the tile causes the title output text to be placed
> OUTSIDE
>              the title tags shown below. Placing the title outside this
> tile
>              in the layout page siteLayout.jsp seems to avoid the problem.
>          -->
>         <title><h:outputText value="This is a title that appears to
> cause a tiles core failure. If you view the html page source you will
> notice that it has been placed outside the title tags. This problem
> occurs for graphicImage tags inside commandLink tags as well."/></title>
> ---------------------------------------------------------------------------------------------------------
> If you take a look at the welcome page html source at the client end
> once the page is displayed, you get:
> <html lang="en">
>         <head>
>                 <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>                
>                 <!-- There seems to be a bug in the tiles core where placeing the title
>                          inside the tile causes the title output text to be place OUTSIDE
>                          the title tags. Placing it here seems to avoid the problem.
>                  -->
>                 <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
>                 This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>                
>                 <!-- There seems to be a bug in the tiles core where placing the title
>                          inside the tile causes the title output text to be placed OUTSIDE
>                          the title tags shown below. Placing the title outside this tile
>                          in the layout page siteLayout.jsp seems to avoid the problem.
>                  -->
>                 <title></title>
>         </head>
>        
>         <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">
>                 <!-- Header and Menu -->
>                
> <br>
> <pre>
> <!--
>      This is a blank Tiles definition file with a commented example.
> -->
> Some header text.
> </pre>
>                 <table border="0" cellspacing="10" cellpadding="0" align="left">
>                         <tr>
>                                 <td valign="Top" height="150">
>                                        
> <h1 align="center">Content Tile!</h1>
> <div>
>         <p>
>                 A paragraph of content.
>         <p>
>                 A second paragraph of content.
>         <p>
>                 A third paragraph of content.
> </div>
>                                 </td>
>                                 <td width="190" align="center" valign="top">
>                                        
> This is a righthand side bar.
>                                 </td>
>                         </tr>
>                         <tr>
>                                 <td>
>                                        
> <hr size="1" width="75%">
> This is some footer text.
>                                 </td>
>                                 <td valign="Top" height="100"> </td>
>                         </tr>
>                 </table>
>         </body>
> </html>
> Notice that the title text ends up outside the html title tags and
> apparently outside the tile itself. This problem is occurring in a
> number of places in several different tiles in my webapp and makes it
> pretty much impossible for me to create valid faces pages. 
> I am using the following libs:
> -rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
> -rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
> -rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
> -rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
> -rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
> -rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
> -rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
> -rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
> -rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
> -rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
> -rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
> -rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
> -rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
> -rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
> -rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
> -rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
> -rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SB-47) Output Defined Within Tile is Rendered Outside Tile

Posted by "Gregg Leichtman (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SB-47?page=all ]

Gregg Leichtman updated SB-47:
------------------------------

    Attachment: tilesbug.tar.bz2

This attachment includes all source and configuration files needed to build a war file to demonstrate the problem defined by SB-47. The libraries used consisted of the following:

-rw-r--r-- 1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
-rw-r--r-- 1 gsl users 90001 2006-09-02 19:01 commons-chain-1.1.jar
-rw-r--r-- 1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
-rw-r--r-- 1 gsl users 52915 2006-09-02 19:01 commons-logging-1.1.jar
-rw-r--r-- 1 gsl users 20682 2006-09-02 19:01 jstl-1.1.2.jar
-rw-r--r-- 1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
-rw-r--r-- 1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
-rw-r--r-- 1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
-rw-r--r-- 1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
-rw-r--r-- 1 gsl users 10346 2006-09-02 19:01 shale-spring-1.0.3.jar
-rw-r--r-- 1 gsl users 13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
-rw-r--r-- 1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
-rw-r--r-- 1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
-rw-r--r-- 1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
-rw-r--r-- 1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
-rw-r--r-- 1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
-rw-r--r-- 1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar


> Output Defined Within Tile is Rendered Outside Tile
> ---------------------------------------------------
>
>                 Key: SB-47
>                 URL: http://issues.apache.org/struts/browse/SB-47
>             Project: Sandbox
>          Issue Type: Bug
>          Components: Tiles
>         Environment: gsl@aragorn:~> uname -a
> Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
> Suse 9.3
> Apache 2.0.53-9.12 with Tomcat 4.1.30-3
> and also on my ISP running under Linux with kernel 2.6.17.4-grsec on i686
> Apache 1.3.37 with Tomcat 5.5.17
>            Reporter: Gregg Leichtman
>         Attachments: tilesbug.tar.bz2
>
>
> I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):
>     tiles-core-2.0-SNAPSHOT-20060922.jar
> Specifically, some types of output from a tile do not seem to stay
> within the tile itself. There seems to be a buffering issue. I have
> tried to as briefly as possible to indicate the problem below where I
> show the welcome page, tiles-defs.xml file, the layout page and an
> affected tile page. I have temporarily placed a webapp at:
>     http://www.lansdaletutoring.com/tilesbug
> that demonstrates the problem and can make the war file available if
> desired.
> The key file contents follow (or at least what I currently believe to be
> key):
> tiles-defs.xml:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>  <!DOCTYPE tiles-definitions PUBLIC
>        "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>        "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
> <tiles-definitions>
>         <!-- Display Definitions -->
>    
>     <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
>         <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
>         <put name="header" value="/tiles/headerTile.jsp"/>
>         <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
>         <put name="footer" value="/tiles/footerTile.jsp"/>
>     </definition>
>     <definition name="/welcomePage" extends="/mainLayout">
>         <put name="content" type="template" value="/tiles/homeTile.jsp"/>
>     </definition>
> </tiles-definitions>
> ---------------------------------------------------------------------------------------------------------
> index.jsp:
> <jsp:forward page="/welcomePage.faces"/>
> ---------------------------------------------------------------------------------------------------------
> siteLayout.jsp:
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
> <html lang="en">
> <f:view>
>     <head>
>         <base
> href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>        
>         <!-- There seems to be a bug in the tiles core where placeing
> the title
>              inside the tile causes the title output text to be place
> OUTSIDE
>              the title tags. Placing it here seems to avoid the problem.
>          -->
>         <!-- title --><!-- h:outputText value="This is a title that
> causes a tiles core failure."/ --><!-- /title -->
>         <tiles:get name="htmlHeader" flush="false"/>
>     </head>
>    
>     <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
> style="margin:0;padding:0">
>         <!-- Header and Menu -->
>         <tiles:get name="header" flush="false"/>
>         <table border="0" cellspacing="10" cellpadding="0" align="left">
>             <tr>
>                 <td valign="Top" height="150">
>                     <tiles:get name="content" flush="false"/>
>                 </td>
>                 <td width="190" align="center" valign="top">
>                     <tiles:get name="rightSideBar" flush="false"/>
>                 </td>
>             </tr>
>             <tr>
>                 <td>
>                     <tiles:get name="footer" flush="false"/>
>                 </td>
>                 <td valign="Top" height="100"> </td>
>             </tr>
>         </table>
>     </body>
> </f:view>
> </html>
> ---------------------------------------------------------------------------------------------------------
> htmlHeaderTile.jsp:
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
> 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>    
>         <!-- There seems to be a bug in the tiles core where placing the
> title
>              inside the tile causes the title output text to be placed
> OUTSIDE
>              the title tags shown below. Placing the title outside this
> tile
>              in the layout page siteLayout.jsp seems to avoid the problem.
>          -->
>         <title><h:outputText value="This is a title that appears to
> cause a tiles core failure. If you view the html page source you will
> notice that it has been placed outside the title tags. This problem
> occurs for graphicImage tags inside commandLink tags as well."/></title>
> ---------------------------------------------------------------------------------------------------------
> If you take a look at the welcome page html source at the client end
> once the page is displayed, you get:
> <html lang="en">
>         <head>
>                 <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>                
>                 <!-- There seems to be a bug in the tiles core where placeing the title
>                          inside the tile causes the title output text to be place OUTSIDE
>                          the title tags. Placing it here seems to avoid the problem.
>                  -->
>                 <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
>                 This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>                
>                 <!-- There seems to be a bug in the tiles core where placing the title
>                          inside the tile causes the title output text to be placed OUTSIDE
>                          the title tags shown below. Placing the title outside this tile
>                          in the layout page siteLayout.jsp seems to avoid the problem.
>                  -->
>                 <title></title>
>         </head>
>        
>         <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">
>                 <!-- Header and Menu -->
>                
> <br>
> <pre>
> <!--
>      This is a blank Tiles definition file with a commented example.
> -->
> Some header text.
> </pre>
>                 <table border="0" cellspacing="10" cellpadding="0" align="left">
>                         <tr>
>                                 <td valign="Top" height="150">
>                                        
> <h1 align="center">Content Tile!</h1>
> <div>
>         <p>
>                 A paragraph of content.
>         <p>
>                 A second paragraph of content.
>         <p>
>                 A third paragraph of content.
> </div>
>                                 </td>
>                                 <td width="190" align="center" valign="top">
>                                        
> This is a righthand side bar.
>                                 </td>
>                         </tr>
>                         <tr>
>                                 <td>
>                                        
> <hr size="1" width="75%">
> This is some footer text.
>                                 </td>
>                                 <td valign="Top" height="100"> </td>
>                         </tr>
>                 </table>
>         </body>
> </html>
> Notice that the title text ends up outside the html title tags and
> apparently outside the tile itself. This problem is occurring in a
> number of places in several different tiles in my webapp and makes it
> pretty much impossible for me to create valid faces pages. 
> I am using the following libs:
> -rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
> -rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
> -rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
> -rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
> -rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
> -rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
> -rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
> -rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
> -rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
> -rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
> -rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
> -rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
> -rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
> -rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
> -rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
> -rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
> -rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SB-47) Output Defined Within Tile is Rendered Outside Tile

Posted by "Wendy Smoak (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/SB-47?page=comments#action_38255 ] 
            
Wendy Smoak commented on SB-47:
-------------------------------

Gregg, Please see this thread on shale-dev:  http://www.nabble.com/Shale-related-Tiles-2-issue-t2328985.html

Gary confirmed my suspicion that this is probably the known issue with JSF 1.1 + JSP, where content may appear out of order unless you wrap it in verbatim (and possibly subview) tags.

Please let us know if that fixes it.  
   
This is another thread that may have some useful info:  
   http://www.nabble.com/Shale-1.0.3-and-Tiles-Question---Tag-Question-t2204571.html#a6288731

You're also welcome to subscribe to the Shale user list, where there are more people to answer JSF-related questions.  http://shale.apache.org/mail-lists.html

> Output Defined Within Tile is Rendered Outside Tile
> ---------------------------------------------------
>
>                 Key: SB-47
>                 URL: http://issues.apache.org/struts/browse/SB-47
>             Project: Sandbox
>          Issue Type: Bug
>          Components: Tiles
>         Environment: gsl@aragorn:~> uname -a
> Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
> Suse 9.3
> Apache 2.0.53-9.12 with Tomcat 4.1.30-3
> gsl@aragorn:~> java -version
> java version "1.5.0_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
> and also on my ISP
> running under Linux with kernel 2.6.17.4-grsec on i686
> Apache 1.3.37 with Tomcat 5.5.17
>            Reporter: Gregg Leichtman
>         Attachments: tilesbug.tar.bz2
>
>
> I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):
>     tiles-core-2.0-SNAPSHOT-20060922.jar
> Specifically, some types of output from a tile do not seem to stay
> within the tile itself. There seems to be a buffering issue. I have
> tried to as briefly as possible to indicate the problem below where I
> show the welcome page, tiles-defs.xml file, the layout page and an
> affected tile page. I have temporarily placed a webapp at:
>     http://www.lansdaletutoring.com/tilesbug
> that demonstrates the problem and I have attached the complete source and config files sans libs. The list of libs used is described below.
> The key file contents follow (or at least what I currently believe to be
> key):
> tiles-defs.xml:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>  <!DOCTYPE tiles-definitions PUBLIC
>        "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>        "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
> <tiles-definitions>
>         <!-- Display Definitions -->
>    
>     <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
>         <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
>         <put name="header" value="/tiles/headerTile.jsp"/>
>         <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
>         <put name="footer" value="/tiles/footerTile.jsp"/>
>     </definition>
>     <definition name="/welcomePage" extends="/mainLayout">
>         <put name="content" type="template" value="/tiles/homeTile.jsp"/>
>     </definition>
> </tiles-definitions>
> ---------------------------------------------------------------------------------------------------------
> index.jsp:
> <jsp:forward page="/welcomePage.faces"/>
> ---------------------------------------------------------------------------------------------------------
> siteLayout.jsp:
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
> <html lang="en">
> <f:view>
>     <head>
>         <base
> href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>        
>         <!-- There seems to be a bug in the tiles core where placeing
> the title
>              inside the tile causes the title output text to be place
> OUTSIDE
>              the title tags. Placing it here seems to avoid the problem.
>          -->
>         <!-- title --><!-- h:outputText value="This is a title that
> causes a tiles core failure."/ --><!-- /title -->
>         <tiles:get name="htmlHeader" flush="false"/>
>     </head>
>    
>     <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
> style="margin:0;padding:0">
>         <!-- Header and Menu -->
>         <tiles:get name="header" flush="false"/>
>         <table border="0" cellspacing="10" cellpadding="0" align="left">
>             <tr>
>                 <td valign="Top" height="150">
>                     <tiles:get name="content" flush="false"/>
>                 </td>
>                 <td width="190" align="center" valign="top">
>                     <tiles:get name="rightSideBar" flush="false"/>
>                 </td>
>             </tr>
>             <tr>
>                 <td>
>                     <tiles:get name="footer" flush="false"/>
>                 </td>
>                 <td valign="Top" height="100"> </td>
>             </tr>
>         </table>
>     </body>
> </f:view>
> </html>
> ---------------------------------------------------------------------------------------------------------
> htmlHeaderTile.jsp:
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
> 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>    
>         <!-- There seems to be a bug in the tiles core where placing the
> title
>              inside the tile causes the title output text to be placed
> OUTSIDE
>              the title tags shown below. Placing the title outside this
> tile
>              in the layout page siteLayout.jsp seems to avoid the problem.
>          -->
>         <title><h:outputText value="This is a title that appears to
> cause a tiles core failure. If you view the html page source you will
> notice that it has been placed outside the title tags. This problem
> occurs for graphicImage tags inside commandLink tags as well."/></title>
> ---------------------------------------------------------------------------------------------------------
> If you take a look at the welcome page html source at the client end
> once the page is displayed, you get:
> <html lang="en">
>         <head>
>                 <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>                
>                 <!-- There seems to be a bug in the tiles core where placeing the title
>                          inside the tile causes the title output text to be place OUTSIDE
>                          the title tags. Placing it here seems to avoid the problem.
>                  -->
>                 <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
>                 This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>                
>                 <!-- There seems to be a bug in the tiles core where placing the title
>                          inside the tile causes the title output text to be placed OUTSIDE
>                          the title tags shown below. Placing the title outside this tile
>                          in the layout page siteLayout.jsp seems to avoid the problem.
>                  -->
>                 <title></title>
>         </head>
>        
>         <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">
>                 <!-- Header and Menu -->
>                
> <br>
> <pre>
> <!--
>      This is a blank Tiles definition file with a commented example.
> -->
> Some header text.
> </pre>
>                 <table border="0" cellspacing="10" cellpadding="0" align="left">
>                         <tr>
>                                 <td valign="Top" height="150">
>                                        
> <h1 align="center">Content Tile!</h1>
> <div>
>         <p>
>                 A paragraph of content.
>         <p>
>                 A second paragraph of content.
>         <p>
>                 A third paragraph of content.
> </div>
>                                 </td>
>                                 <td width="190" align="center" valign="top">
>                                        
> This is a righthand side bar.
>                                 </td>
>                         </tr>
>                         <tr>
>                                 <td>
>                                        
> <hr size="1" width="75%">
> This is some footer text.
>                                 </td>
>                                 <td valign="Top" height="100"> </td>
>                         </tr>
>                 </table>
>         </body>
> </html>
> Notice that the title text ends up outside the html title tags and
> apparently outside the tile itself. This problem is occurring in a
> number of places in several different tiles in my webapp and makes it
> pretty much impossible for me to create valid faces pages. 
> I am using the following libs:
> -rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
> -rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
> -rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
> -rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
> -rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
> -rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
> -rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
> -rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
> -rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
> -rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
> -rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
> -rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
> -rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
> -rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
> -rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
> -rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
> -rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (SB-47) Output Defined Within Tile is Rendered Outside Tile

Posted by "David H. DeWolf (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SB-47?page=all ]

David H. DeWolf resolved SB-47.
-------------------------------

    Fix Version/s: 2.0
       Resolution: Won't Fix

In addition to the discussions that have taken place on this and the shale list, tiles has been significantly refactored since issues was logged.  I will resolve as won't fix.  Please re-submit if it remains an issue.

> Output Defined Within Tile is Rendered Outside Tile
> ---------------------------------------------------
>
>                 Key: SB-47
>                 URL: http://issues.apache.org/struts/browse/SB-47
>             Project: Sandbox
>          Issue Type: Bug
>          Components: Tiles
>         Environment: gsl@aragorn:~> uname -a
> Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
> Suse 9.3
> Apache 2.0.53-9.12 with Tomcat 4.1.30-3
> gsl@aragorn:~> java -version
> java version "1.5.0_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
> and also on my ISP
> running under Linux with kernel 2.6.17.4-grsec on i686
> Apache 1.3.37 with Tomcat 5.5.17
>            Reporter: Gregg Leichtman
>             Fix For: 2.0
>
>         Attachments: tilesbug.tar.bz2, tilestest.tar.bz2
>
>
> I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):
>     tiles-core-2.0-SNAPSHOT-20060922.jar
> Specifically, some types of output from a tile do not seem to stay
> within the tile itself. There seems to be a buffering issue. I have
> tried to as briefly as possible to indicate the problem below where I
> show the welcome page, tiles-defs.xml file, the layout page and an
> affected tile page. I have temporarily placed a webapp at:
>     http://www.lansdaletutoring.com/tilesbug
> that demonstrates the problem and I have attached the complete source and config files sans libs. The list of libs used is described below.
> The key file contents follow (or at least what I currently believe to be
> key):
> tiles-defs.xml:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>  <!DOCTYPE tiles-definitions PUBLIC
>        "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>        "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
> <tiles-definitions>
>         <!-- Display Definitions -->
>    
>     <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
>         <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
>         <put name="header" value="/tiles/headerTile.jsp"/>
>         <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
>         <put name="footer" value="/tiles/footerTile.jsp"/>
>     </definition>
>     <definition name="/welcomePage" extends="/mainLayout">
>         <put name="content" type="template" value="/tiles/homeTile.jsp"/>
>     </definition>
> </tiles-definitions>
> ---------------------------------------------------------------------------------------------------------
> index.jsp:
> <jsp:forward page="/welcomePage.faces"/>
> ---------------------------------------------------------------------------------------------------------
> siteLayout.jsp:
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
> <html lang="en">
> <f:view>
>     <head>
>         <base
> href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>        
>         <!-- There seems to be a bug in the tiles core where placeing
> the title
>              inside the tile causes the title output text to be place
> OUTSIDE
>              the title tags. Placing it here seems to avoid the problem.
>          -->
>         <!-- title --><!-- h:outputText value="This is a title that
> causes a tiles core failure."/ --><!-- /title -->
>         <tiles:get name="htmlHeader" flush="false"/>
>     </head>
>    
>     <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
> style="margin:0;padding:0">
>         <!-- Header and Menu -->
>         <tiles:get name="header" flush="false"/>
>         <table border="0" cellspacing="10" cellpadding="0" align="left">
>             <tr>
>                 <td valign="Top" height="150">
>                     <tiles:get name="content" flush="false"/>
>                 </td>
>                 <td width="190" align="center" valign="top">
>                     <tiles:get name="rightSideBar" flush="false"/>
>                 </td>
>             </tr>
>             <tr>
>                 <td>
>                     <tiles:get name="footer" flush="false"/>
>                 </td>
>                 <td valign="Top" height="100"> </td>
>             </tr>
>         </table>
>     </body>
> </f:view>
> </html>
> ---------------------------------------------------------------------------------------------------------
> htmlHeaderTile.jsp:
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
> 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>    
>         <!-- There seems to be a bug in the tiles core where placing the
> title
>              inside the tile causes the title output text to be placed
> OUTSIDE
>              the title tags shown below. Placing the title outside this
> tile
>              in the layout page siteLayout.jsp seems to avoid the problem.
>          -->
>         <title><h:outputText value="This is a title that appears to
> cause a tiles core failure. If you view the html page source you will
> notice that it has been placed outside the title tags. This problem
> occurs for graphicImage tags inside commandLink tags as well."/></title>
> ---------------------------------------------------------------------------------------------------------
> If you take a look at the welcome page html source at the client end
> once the page is displayed, you get:
> <html lang="en">
>         <head>
>                 <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>                
>                 <!-- There seems to be a bug in the tiles core where placeing the title
>                          inside the tile causes the title output text to be place OUTSIDE
>                          the title tags. Placing it here seems to avoid the problem.
>                  -->
>                 <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
>                 This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>                
>                 <!-- There seems to be a bug in the tiles core where placing the title
>                          inside the tile causes the title output text to be placed OUTSIDE
>                          the title tags shown below. Placing the title outside this tile
>                          in the layout page siteLayout.jsp seems to avoid the problem.
>                  -->
>                 <title></title>
>         </head>
>        
>         <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">
>                 <!-- Header and Menu -->
>                
> <br>
> <pre>
> <!--
>      This is a blank Tiles definition file with a commented example.
> -->
> Some header text.
> </pre>
>                 <table border="0" cellspacing="10" cellpadding="0" align="left">
>                         <tr>
>                                 <td valign="Top" height="150">
>                                        
> <h1 align="center">Content Tile!</h1>
> <div>
>         <p>
>                 A paragraph of content.
>         <p>
>                 A second paragraph of content.
>         <p>
>                 A third paragraph of content.
> </div>
>                                 </td>
>                                 <td width="190" align="center" valign="top">
>                                        
> This is a righthand side bar.
>                                 </td>
>                         </tr>
>                         <tr>
>                                 <td>
>                                        
> <hr size="1" width="75%">
> This is some footer text.
>                                 </td>
>                                 <td valign="Top" height="100"> </td>
>                         </tr>
>                 </table>
>         </body>
> </html>
> Notice that the title text ends up outside the html title tags and
> apparently outside the tile itself. This problem is occurring in a
> number of places in several different tiles in my webapp and makes it
> pretty much impossible for me to create valid faces pages. 
> I am using the following libs:
> -rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
> -rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
> -rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
> -rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
> -rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
> -rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
> -rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
> -rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
> -rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
> -rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
> -rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
> -rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
> -rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
> -rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
> -rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
> -rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
> -rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SB-47) Output Defined Within Tile is Rendered Outside Tile

Posted by "Gregg Leichtman (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SB-47?page=all ]

Gregg Leichtman updated SB-47:
------------------------------

    Attachment: tilestest.tar.bz2

Exploded war file sans libs that works. Using libs:

gsl@aragorn:~/tilestest/WEB-INF/lib> ls -l
total 2609
-rw-r--r--  1 gsl users  36342 2006-09-26 23:21 commons-attributes-api-2.1.jar
-rw-r--r--  1 gsl users  29216 2006-09-26 23:21 commons-attributes-compiler-2.1.jar
-rw-r--r--  1 gsl users 188671 2006-09-26 23:21 commons-beanutils-1.7.0.jar
-rw-r--r--  1 gsl users  90001 2006-09-26 23:21 commons-chain-1.1.jar
-rw-r--r--  1 gsl users 139966 2006-09-26 23:21 commons-digester-1.7.jar
-rw-r--r--  1 gsl users  52915 2006-09-26 23:21 commons-logging-1.1.jar
-rw-r--r--  1 gsl users  20682 2006-09-26 23:21 jstl-1.1.2.jar
-rw-r--r--  1 gsl users 249563 2006-09-26 23:21 myfaces-api-1.1.4.jar
-rw-r--r--  1 gsl users 524089 2006-09-26 23:21 myfaces-impl-1.1.4.jar
-rw-r--r--  1 gsl users 152249 2006-09-26 23:21 shale-core-1.0.3.jar
-rw-r--r--  1 gsl users  10346 2006-09-26 23:21 shale-spring-1.0.3.jar
-rw-r--r--  1 gsl users  13320 2006-09-26 23:21 shale-tiles-1.0.3.jar
-rw-r--r--  1 gsl users 232536 2006-09-26 23:21 spring-beans-1.2.8.jar
-rw-r--r--  1 gsl users 109661 2006-09-26 23:21 spring-context-1.2.8.jar
-rw-r--r--  1 gsl users 121686 2006-09-26 23:21 spring-core-1.2.8.jar
-rw-r--r--  1 gsl users 143473 2006-09-26 23:21 spring-web-1.2.8.jar
-rw-r--r--  1 gsl users 393259 2006-09-26 23:21 standard-1.1.2.jar
-rw-r--r--  1 gsl users 125663 2006-09-26 23:21 tiles-core-2.0-SNAPSHOT-20060922.jar


> Output Defined Within Tile is Rendered Outside Tile
> ---------------------------------------------------
>
>                 Key: SB-47
>                 URL: http://issues.apache.org/struts/browse/SB-47
>             Project: Sandbox
>          Issue Type: Bug
>          Components: Tiles
>         Environment: gsl@aragorn:~> uname -a
> Linux aragorn 2.6.11.4-21.13-default #1 Mon Jul 17 09:21:59 UTC 2006 i686 i686 i386 GNU/Linux
> Suse 9.3
> Apache 2.0.53-9.12 with Tomcat 4.1.30-3
> gsl@aragorn:~> java -version
> java version "1.5.0_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
> and also on my ISP
> running under Linux with kernel 2.6.17.4-grsec on i686
> Apache 1.3.37 with Tomcat 5.5.17
>            Reporter: Gregg Leichtman
>         Attachments: tilesbug.tar.bz2, tilestest.tar.bz2
>
>
> I have run into a problem with the latest tiles-core snapshot as well as snapshots from 02Sep2006 up to and including the following snapshot (I have not checked newer ones beyond this one):
>     tiles-core-2.0-SNAPSHOT-20060922.jar
> Specifically, some types of output from a tile do not seem to stay
> within the tile itself. There seems to be a buffering issue. I have
> tried to as briefly as possible to indicate the problem below where I
> show the welcome page, tiles-defs.xml file, the layout page and an
> affected tile page. I have temporarily placed a webapp at:
>     http://www.lansdaletutoring.com/tilesbug
> that demonstrates the problem and I have attached the complete source and config files sans libs. The list of libs used is described below.
> The key file contents follow (or at least what I currently believe to be
> key):
> tiles-defs.xml:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>  <!DOCTYPE tiles-definitions PUBLIC
>        "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>        "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
> <tiles-definitions>
>         <!-- Display Definitions -->
>    
>     <definition name="/mainLayout" path="/tiles/layouts/siteLayout.jsp">
>         <put name="htmlHeader" value="/tiles/htmlHeaderTile.jsp"/>
>         <put name="header" value="/tiles/headerTile.jsp"/>
>         <put name="rightSideBar" value="/tiles/rightSideBarTile.jsp"/>
>         <put name="footer" value="/tiles/footerTile.jsp"/>
>     </definition>
>     <definition name="/welcomePage" extends="/mainLayout">
>         <put name="content" type="template" value="/tiles/homeTile.jsp"/>
>     </definition>
> </tiles-definitions>
> ---------------------------------------------------------------------------------------------------------
> index.jsp:
> <jsp:forward page="/welcomePage.faces"/>
> ---------------------------------------------------------------------------------------------------------
> siteLayout.jsp:
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
> <html lang="en">
> <f:view>
>     <head>
>         <base
> href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>        
>         <!-- There seems to be a bug in the tiles core where placeing
> the title
>              inside the tile causes the title output text to be place
> OUTSIDE
>              the title tags. Placing it here seems to avoid the problem.
>          -->
>         <!-- title --><!-- h:outputText value="This is a title that
> causes a tiles core failure."/ --><!-- /title -->
>         <tiles:get name="htmlHeader" flush="false"/>
>     </head>
>    
>     <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
> style="margin:0;padding:0">
>         <!-- Header and Menu -->
>         <tiles:get name="header" flush="false"/>
>         <table border="0" cellspacing="10" cellpadding="0" align="left">
>             <tr>
>                 <td valign="Top" height="150">
>                     <tiles:get name="content" flush="false"/>
>                 </td>
>                 <td width="190" align="center" valign="top">
>                     <tiles:get name="rightSideBar" flush="false"/>
>                 </td>
>             </tr>
>             <tr>
>                 <td>
>                     <tiles:get name="footer" flush="false"/>
>                 </td>
>                 <td valign="Top" height="100"> </td>
>             </tr>
>         </table>
>     </body>
> </f:view>
> </html>
> ---------------------------------------------------------------------------------------------------------
> htmlHeaderTile.jsp:
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin;
> 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>    
>         <!-- There seems to be a bug in the tiles core where placing the
> title
>              inside the tile causes the title output text to be placed
> OUTSIDE
>              the title tags shown below. Placing the title outside this
> tile
>              in the layout page siteLayout.jsp seems to avoid the problem.
>          -->
>         <title><h:outputText value="This is a title that appears to
> cause a tiles core failure. If you view the html page source you will
> notice that it has been placed outside the title tags. This problem
> occurs for graphicImage tags inside commandLink tags as well."/></title>
> ---------------------------------------------------------------------------------------------------------
> If you take a look at the welcome page html source at the client end
> once the page is displayed, you get:
> <html lang="en">
>         <head>
>                 <base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
>                
>                 <!-- There seems to be a bug in the tiles core where placeing the title
>                          inside the tile causes the title output text to be place OUTSIDE
>                          the title tags. Placing it here seems to avoid the problem.
>                  -->
>                 <!-- title --><!-- h:outputText value="This is a title that causes a tiles core failure."/ --><!-- /title -->
>                 This is a title that appears to cause a tiles core failure. If you view the html page source you will notice that it has been placed outside the title tags. This problem occurs for graphicImage tags inside commandLink tags as well.
> <meta name="Generator" content="Port80 Eclipse HTML Editor Plugin; 12/20/2002">
> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
> <meta name="description" content='A description'>
> <meta name="keywords" content='keyword1 keyword2'>
> <meta name="robots" content="index,follow">
> <link rel="icon" href="favicon.ico" type="image/x-icon">
> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
>                
>                 <!-- There seems to be a bug in the tiles core where placing the title
>                          inside the tile causes the title output text to be placed OUTSIDE
>                          the title tags shown below. Placing the title outside this tile
>                          in the layout page siteLayout.jsp seems to avoid the problem.
>                  -->
>                 <title></title>
>         </head>
>        
>         <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0">
>                 <!-- Header and Menu -->
>                
> <br>
> <pre>
> <!--
>      This is a blank Tiles definition file with a commented example.
> -->
> Some header text.
> </pre>
>                 <table border="0" cellspacing="10" cellpadding="0" align="left">
>                         <tr>
>                                 <td valign="Top" height="150">
>                                        
> <h1 align="center">Content Tile!</h1>
> <div>
>         <p>
>                 A paragraph of content.
>         <p>
>                 A second paragraph of content.
>         <p>
>                 A third paragraph of content.
> </div>
>                                 </td>
>                                 <td width="190" align="center" valign="top">
>                                        
> This is a righthand side bar.
>                                 </td>
>                         </tr>
>                         <tr>
>                                 <td>
>                                        
> <hr size="1" width="75%">
> This is some footer text.
>                                 </td>
>                                 <td valign="Top" height="100"> </td>
>                         </tr>
>                 </table>
>         </body>
> </html>
> Notice that the title text ends up outside the html title tags and
> apparently outside the tile itself. This problem is occurring in a
> number of places in several different tiles in my webapp and makes it
> pretty much impossible for me to create valid faces pages. 
> I am using the following libs:
> -rw-r--r--  1 gsl users 188671 2006-09-02 19:01 commons-beanutils-1.7.0.jar
> -rw-r--r--  1 gsl users  90001 2006-09-02 19:01 commons-chain-1.1.jar
> -rw-r--r--  1 gsl users 139966 2006-09-02 19:01 commons-digester-1.7.jar
> -rw-r--r--  1 gsl users  52915 2006-09-02 19:01 commons-logging-1.1.jar
> -rw-r--r--  1 gsl users  20682 2006-09-02 19:01 jstl-1.1.2.jar
> -rw-r--r--  1 gsl users 236607 2006-09-02 19:01 myfaces-api-1.1.1.jar
> -rw-r--r--  1 gsl users 468364 2006-09-02 19:01 myfaces-impl-1.1.1.jar
> -rw-r--r--  1 gsl users 802216 2006-08-31 22:06 poi-2.5.1.jar
> -rw-r--r--  1 gsl users 152249 2006-09-02 19:01 shale-core-1.0.3.jar
> -rw-r--r--  1 gsl users  10346 2006-09-02 19:01 shale-spring-1.0.3.jar
> -rw-r--r--  1 gsl users  13320 2006-09-02 19:01 shale-tiles-1.0.3.jar
> -rw-r--r--  1 gsl users 232536 2006-09-02 19:01 spring-beans-1.2.8.jar
> -rw-r--r--  1 gsl users 109661 2006-09-02 19:01 spring-context-1.2.8.jar
> -rw-r--r--  1 gsl users 121686 2006-09-02 19:01 spring-core-1.2.8.jar
> -rw-r--r--  1 gsl users 143473 2006-09-02 19:01 spring-web-1.2.8.jar
> -rw-r--r--  1 gsl users 393259 2006-08-30 23:45 standard-1.1.2.jar
> -rw-r--r--  1 gsl users 125663 2006-09-22 07:09 tiles-core-2.0-SNAPSHOT-20060922.jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira