I am sorry - I forgot to mention that tiles 2.0.5
Thanks for replying.


________________________________
From: Antonio Petrelli <[email protected]>
To: [email protected]
Sent: Fri, June 11, 2010 10:36:57 AM
Subject: Re: tile definitions correct?!

What version of Tiles are you using?

Antonio

2010/6/11 Despot Jakimovski <[email protected]>:
> 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
>
>
>



      

Reply via email to