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" cascade="true"/>
    </definition>
    <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>
<body>
 <tiles:insertAttribute name="body"/>
 <tiles:insertDefinition name="vertical.motor">
    <%-- the following does not work --%>
    <tiles:insertAttribute name="description"/>
 </tiles:insertDefinition>
</body>
</html>


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."

~mck

-- 
"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 |

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to