You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Pratt <th...@gmail.com> on 2006/10/24 19:33:37 UTC

Adding Elements to a

Is it possible to add elements to a list started by a "super" tile
definition?  In other words, is something like this doable?

Define a layout that has as list of breadcrumbs:

  <definition name="default.layout" path="default-layout.jsp">
    <put name="bluearea" value="/tiles/blank.jsp" type="page"/>
    <put name="whitearea" value="/tiles/blank.jsp" type="page"/>
    <putList name="breadcrumbs">
      <add value="Home" type="string"/>
      <add value="Members" type="string"/>
    </putList>
  </definition>

  <definition name="default.pane" extends="site.layout">
    <put name="body" value="default.layout" type="definition"/>
  </definition>


Extend that layout and add additional breadcrumbs:

  <definition name="login.help.layout" extends="default.layout">
    <put name="pagetitle" value="members" type="string"/>
    <put name="bluearea" value="/tiles/login-help.jsp" type="page"/>
    <putList name="breadcrumbs">
      <add value="Need Help With Sign-On?" type="string"/>
    </putList>
  </definition>

  <definition name="login.help" extends="default.pane">
    <put name="body" value="login.help.layout" type="definition"/>
  </definition>


And end up with the breadcrumbs:

Home >> Members >> Need Help With Sign-On?

(*Chris*)

[tiles] Re: Adding Elements to a

Posted by Antonio Petrelli <ap...@apache.org>.
Chris Pratt ha scritto:
> Is it possible to add elements to a list started by a "super" tile
> definition?  In other words, is something like this doable?

For the moment you can't, but what you're asking seems to be a new 
feature that could be helpful.
I opened an issue for Tiles 2 for this:
http://issues.apache.org/struts/browse/SB-60

Thank you
Antonio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org