tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Despot Jakimovski <deksa13ja...@yahoo.com>
Subject tile definitions correct?!
Date Fri, 11 Jun 2010 08:29:55 GMT

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 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 name="example" extends="basicTemplate">
        <put-attribute name="contentTileAbstract" value="/WEB-INF/jsp/home.jsp"/>

instead, I never get the home.jsp as the content tile. Am I wrong to defining the definitions
in this way?

Kind Regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message