You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Matt Benson <gu...@yahoo.com> on 2009/05/27 18:46:11 UTC
question about definitions/composition
I am attempting to have definitions like:
<definition name="foo" template="foo-template" />
where foo-template includes tiles.insertAttribute name="foo-attr"
<definition name="bar" extends="foo">
<put-attribute name="foo-attr" value="bar-template"
cascade="true" />
</definition>
where bar-template includes tiles.insertAttribute name="bar-attr"
<definition name="baz" extends="bar">
<put-attribute name="bar-attr" value="baz-template" />
</definition>
When I try to render baz, the runtime stack includes foo-attr=bar-template and bar-attr=baz-template, but when tiles tries to render bar-attr, nested in the evaluation of foo-attr, bar-attr cannot be resolved. Am I doing something fundamentally wrong with my composition? Note that specifically I am using trunk/freemarker.
Thanks,
Matt