tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mck <m...@wever.org>
Subject howto delegate to other definitions ?
Date Tue, 09 Feb 2010 12:40:52 GMT
I'm trying to insert other definitions.
But the attributes from the other definition are never available.

My tiles.xml

    <definition name="WILDCARD:*.*" extends="{1}" template="/WEB-INF/tiles/templates/{2}_template.jsp">
        <put-attribute name="vertical" value="vertical.{2}" cascade="true" type="definition"/>
        <put-attribute name="body" value="/WEB-INF/tiles/vertical/{2}/content_new.jsp"
    <definition name="vertical.motor" template="/WEB-INF/blank.jsp">
        <put-attribute name="description" value="/WEB-INF/tiles/vertical/motor/description.jsp"

The explicit definition i use here is "advert.motor.car"
so my template is /WEB-INF/tiles/templates/motor_template.jsp
and looks like

 <tiles:insertAttribute name="body"/>
 <tiles:insertDefinition name="vertical.motor">
    <%-- the following does not work --%>
    <tiles:insertAttribute name="description"/>

This other definition "vertical.motor" has only a blank template because
all i need are access its inner attributes.

But all i get is 
"NoSuchAttributeException: Attribute 'description' not found."


"Microsoft bought MS-DOS from a Seattle company, and it was called QDOS
then (Quick and Dirty Operating System). Some say it is not quick
anymore, but the rest stays the same." WILSON ROBERTO AFONSO 
| semb.wever.org | sesat.no | finn.no |

View raw message