The idea is that most tiles extend .mainLayout and look like

   HEADER
     [body]
   FOOTER

But some tiles extend .nestedLayout instead, which in turn extends
.mainLayout for two layers of navigation:

  HEADER
    Nested Header
      [nested body]
    Nested Footer
  FOOTER

The nested header+body+footer together form the "body" within the
.mainLayout tile.  But there are several tiles like this, which hold the
Nested header/footer constant while varying the nested body.  Hence the
.nestedLayout tile extends .mainLayout, defining a new "nestedBody" slot.

I think .nested1 extends .nestedLayout extends .mainLayout is logical
and almost works--just can't figure out how to (cleanly) get the
nestedBody attribute value where I need it.

-- Bill

<definition name=".mainLayout" page="/tiles/mainLayout.jsp">
 <put name="header" value="/tiles/header.jsp">
 <put name="footer" value="/tiles/footer.jsp">
 <put name="title" value="${title}"/>
 <put name="body" value="${body}"/>
</definition>

<definition name=".nestedLayout" extends=".mainLayout">
 <put name="body" value="/tiles/nestedLayout.jsp"/>
 <put name="body" value="${nestedBody}"/>
</definition>

That is, it looks like you want to override rather than extend the definition? Is that right?

Michael

Oops! I meant:

<definition name=".nestedLayout" extends=".mainLayout">
<put name="body" value="${nestedBody}"/>
</definition>

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to