tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: tile definitions correct?!
Date Fri, 11 Jun 2010 08:36:57 GMT
What version of Tiles are you using?

Antonio

2010/6/11 Despot Jakimovski <deksa13jakim@yahoo.com>:
> Hi,
>
> I want to reuse some tiles definitions in the following way:
> basicLayout consists of header body and footer
> bodyLayout consists of menu and content tile
> example page should extend the basic layout but override the content tile.
> I thought that this could solve my problem:
>
>      <definition name="basicTemplate" template="/WEB-INF/tiles/basicTemplate.jsp">
> <put-attribute name="headTile" value="/WEB-INF/tiles/headTile.jsp" />
> <put-attribute name="headerTile" value="/WEB-INF/tiles/headerTile.jsp" />
> <put-attribute name="bodyTileAbstract" value="bodyTemplate" />
> <put-attribute name="footerTile" value="/WEB-INF/tiles/footerTile.jsp" />
> </definition>
> <definition name="bodyTemplate" template="/WEB-INF/tiles/bodyTile.jsp">
> <put-attribute name="menuTile" value="/WEB-INF/tiles/menuTile.jsp"/>
>        <put-attribute name="contentTileAbstract" value="/WEB-INF/tiles/contentTileAbstract.jsp"/>
> </definition>
> <definition name="example" extends="basicTemplate">
>        <put-attribute name="contentTileAbstract" value="/WEB-INF/jsp/home.jsp"/>
>  </definition>
>
> instead, I never get the home.jsp as the content tile. Am I wrong to defining the definitions
in this way?
>
> Kind Regards,
> Deksa
>
>
>

Mime
View raw message