tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcosio <dcco...@gmail.com>
Subject Re: Tiles not building extended content
Date Mon, 06 Oct 2008 14:04:44 GMT

Using Struts 2.0.11.2, Spring 2.5.2, tiles 2.0.4.

I searched the forum a bit and found a post that sort explained the problem
I'm having. It seem that since my extends are going more than 3 deep is the
problem(it wasn't a problem in tiles1). So, when I get some time Im going to
see if make modifications to how deep I extend will work..

Here is the post 
http://www.nabble.com/Nesting-tiles-3-levels-deep-not-finding-attribute-td11884042.html#a13087898
nesting tiles 3 deep 

the tiles definitions are not new they work in my current app that uses
struts 1, tiles 1 and spring 2.5.2.. 
I just took the existing definitions and reused them but made the
appropriate changes to the tags and definitions. 
Here is the content of the main layout.. 
<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ page contentType="text/html;charset=windows-1252" %>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"/>
    <s:if test="%{PrinterFriendly!=null && PrinterFriendly==true}">
    <link rel="stylesheet" href="<s:url value="/resources/css/pp_print.css"
/>" />
    </s:if>
    <s:else>
    <link rel="stylesheet" type="text/css" href="<s:url
value="/resources/css/pp_main.css"/>"  />
	</s:else>
    <link rel="stylesheet" href="<s:url
value="/resources/css/pp_dropdown_menus.css"/>" />
    <link rel="stylesheet" href="<s:url
value="/resources/css/pp_simple_popup.css"/>" />
    <link rel="stylesheet" href="<s:url
value="/resources/css/pp_tooltip.css"/>" type="text/css" /> 
    <title><tiles:getAsString name="pageTitle" /></title>
	
	<script 
		type="text/javascript" 
		src="<s:url value="/resources/js/wnd.js"/>">
	</script>
    
    <!-- simple popup scripts -->
<script src="<s:url value="/resources/js/common.js"/>"
type="text/javascript"></script>
    <script src="<s:url value="/resources/js/tooltip.js"/>"
type="text/javascript"></script>
    <script src="<s:url value="/resources/js/pp_simple_popup.js"/>"
type="text/javascript"></script>

  </head>
  <body>
    <div id="pageContainer">
      <div id="pageHeader">
        <tiles:insertAttribute name="header"/>
      </div>
      <div id="pageContent">
        <tiles:insertAttribute name="pageContent">
            <tiles:putAttribute name="pageContent"  ><tiles:getAsString
name="contentPane"   ignore="true"/></tiles:putAttribute>
            <tiles:putAttribute name="sectionTitle" ><tiles:getAsString
name="sectionTitle"  ignore="true"/></tiles:putAttribute>
            <tiles:putAttribute name="tabs"         ><tiles:getAsString
name="tabs"          ignore="true"/></tiles:putAttribute>
            <tiles:putAttribute name="activeTab"    ><tiles:getAsString
name="activeTab"     ignore="true"/></tiles:putAttribute>
            <tiles:putAttribute name="tabPane"      ><tiles:getAsString
name="tabPane"       ignore="true"/></tiles:putAttribute>
        </tiles:insertAttribute>
      </div></div><div id="bottomCorners"></div>
    <div id="pageFooter">
      <tiles:insertAttribute name="footer"/>
    </div>
-->


Antonio Petrelli-3 wrote:
> 
> 2008/10/6 dcosio <dccosio@gmail.com>:
>> I have a strange problem. I'm in the process of migrating our struts 1,
>> tiles, spring app to struts 2, tiles 2, spring 2.
> 
> Versions of Struts, Tiles and Spring?
> 
>> The "tile.home" def renders.. It includes the ".tile.layout.content"
>> which
>> extends ".tile.layout.main", But when I try to render
>> "tile.gpo.openRequests" I only get the header and footer that is defined
>> in
>> ".tile.layout.main".
> 
> The "tile.gpo.openRequests" uses the
> "/WEB-INF/layouts/main_layout.jsp" template. Are you sure that you
> included, in this JSP page, the <tiles:insertAttribute> tags for
> activeTab e tabPane?
> Can you post the code of main_layout.jsp?
> 
> Antonio
> 
> 

-- 
View this message in context: http://www.nabble.com/Tiles-not-building-extended-content-tp19837124p19838610.html
Sent from the tiles users mailing list archive at Nabble.com.


Mime
View raw message