tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Despot Jakimovski <deksa13ja...@yahoo.com>
Subject Re: tile definitions correct?!
Date Fri, 11 Jun 2010 10:20:36 GMT
I am sorry - I forgot to mention that tiles 2.0.5
Thanks for replying.



________________________________
From: Antonio Petrelli <antonio.petrelli@gmail.com>
To: users@tiles.apache.org
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 <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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message