tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: howto delegate to other definitions ?
Date Tue, 09 Feb 2010 15:13:10 GMT
First of all, version of Tiles?

2010/2/9 Mck <mick@wever.org>:
>    <definition name="vertical.motor" template="/WEB-INF/blank.jsp">
>        <put-attribute name="description" value="/WEB-INF/tiles/vertical/motor/description.jsp"
cascade="true"/>
>    </definition>
>...
> The explicit definition i use here is "advert.motor.car"
> so my template is /WEB-INF/tiles/templates/motor_template.jsp
> and looks like
>
> <html>
> ...
>    <tiles:insertAttribute name="description"/>

The description attribute is available from "vertical.motor"
definition to all *included* definitions, not definitions that include
it.
I suppose that to accomplish what you want to do is using a preparer.

Antonio

Mime
View raw message