On Nov 23, 2005, at 4:13 PM, Leahy, Kevin wrote:

<definition name="tile.page1" extends="tile.outer" >
    <!-- insert into OuterLayout -->
    <put name="Title" value="/pageComponents/GenericTitle.jsp" />
    <put name="Content" value="tile.inner" >
        <put name="Optional1" value="/pageComponents/Optional1.jsp"
/>
        <put name="Optional2" value="/pageComponents/Optional2.jsp"
/>
    </put>
</definition>

However the put tag doesn't take nested elements. I tried already.

You're right, that's not supported. I like the idea though. I wonder how hard it would be to support that.

I'm sure
there must be way to do this though. Is there a way to make layouts extend other layouts. I.e. in the example above could I specify a third layout that
combined the inner and outer into a third one somehow?

I thought the code I posted in my last response would basically do this. With Tiles anything can be a definition. If you just wrap up what you need in another definition then insert that, you should be able to accomplish what you want. Does the code reposted below not do that?

Unfortunately, the only way I can think of to do that in definitions is
this:

<definition name="tile.form" path="/layout/FormLayout.jsp" >
     <put name="AlwaysThereFilter"
         value="/pageComponents/AlwaysThereFilter.jsp" />
  </definition>

<definition name="tile.form.withSomeFilter" extends="tile.form">
     <put name="SometimeFilter"
         value="/pageComponents/SometimeFilter.jsp" /> </definition>

  <definition name="tile.form1" extends="tile.base" >
      <put name="title" value="Form 1 Page" />
<put name="body" value="tile. form.withSomeFilter" /> </ definition>


Greg


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

Reply via email to