tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanlick <stanl...@gmail.com>
Subject Nested tile definitions
Date Wed, 22 Oct 2008 17:43:24 GMT

I am using Tiles 2 with the following pair of definitions:

  <definition name="myapp.header" template="/tiles/header.jsp">
    <put-attribute name="top" value="/tiles/header-top.jsp" />
    <put-attribute name="middle" value="/tiles/header-middle.jsp" />
    <put-attribute name="bottom" value="/tiles/header-bottom.jsp" />  
    <put-attribute name="breadcrumbs" value="/tiles/header-breadcrumbs.jsp"
/> 
  </definition>


  <definition name="myapp.homePage" template="/layouts/page-container.jsp">
    <put-attribute name="title" value="Prototype Struts 2 Web Application"
/>
    <put-attribute name="header" value="myapp.header" />
    <put-attribute name="main" value="myapp.main" />
    <put-attribute name="footer" value="myapp.footer" />
  </definition>

I would like to extend myapp.homePage in a definition and override the
"breadcrumbs" of the myapp.header with blank.jsp but the following is not
getting the job done!


  <definition name="myapp.homePageNoCrumbs" extends="myapp.homePage">
    <put-attribute name="title" value="Prototype Struts 2 Web Application
with NO CRUMBS" />
    <put-attribute name="myapp.header.breadcrumbs" value="/tiles/blank.jsp"
/>
  </definition>

Is it possible to override nested attributes in a sub-definition?

Peace,
Scott
-- 
View this message in context: http://www.nabble.com/Nested-tile-definitions-tp20116049p20116049.html
Sent from the tiles users mailing list archive at Nabble.com.


Mime
View raw message