tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natalia Chernova <ntch...@gmail.com>
Subject Wildcard in definition name and cascaded attributes
Date Tue, 07 Apr 2009 09:02:03 GMT
Hi,

I'm using tiles 2.1.2 and have a problem. If I configure tiles using
wildcards, cascaded attributes are not found.

This example works:
<definition name="sample.homepage.red" extends="layout.sample.content">
        <put-attribute name="title.window" value="sample.window.red.title"/>
        <put-attribute name="content.title" value="sample.red.content.title"
cascade="true"/>
    </definition>

And this does not:
<definition name="sample.homepage.*" extends="layout.sample.content">
        <put-attribute name="title.window" value="sample.window.red.title"/>
        <put-attribute name="content.title" value="sample.red.content.title"
cascade="true"/>
    </definition>

Exception is:
org.apache.tiles.jsp.taglib.TilesJspException: Attribute with name
'content.title' not found

org.apache.tiles.jsp.taglib.AttributeTagSupport.doStartTag(AttributeTagSupport.java:151)

Am I doing something wrong? Is there wokraround?

Thanks,
Natalia.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message