tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Vanthienen <gert.vanthie...@skynet.be>
Subject attribute not found on second page
Date Mon, 04 Jun 2007 08:24:21 GMT
L.S.,


I have created a tiles.xml file to define (see below)
- template.webshop, which insert a two-column body (navigation and 
content) in a JSP page
- webshop.home uses template.webshop and fills in the navigation and 
content attributes

However, Tiles complains about "Attribute 'content' not found" when 
showing the webshop.home definition.  Why?  Can't you insert a page 
which contains <tiles:insertAttribute /> tags itself?


Thanks for any help,

Gert



tiles.xml

    <definition name="template.webshop" templates="/templates/basic.jsp">
        <put-attribute name="header" 
value="/templates/shopping_header.jsp"/>
        <put-attribute name="body" value="/templates/two_column_body.jsp"/>
    </definition>

    <definition name="webshop.home" extends="template.webshop">
        <put-attribute name="navigation" 
value="/templates/navigation_collapsed.jsp"/>
        <put-attribute name="content" value="/home.jsp" />
    </definition>   

Mime
View raw message