tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio <antonio.petre...@gmail.com>
Subject Re: Problem with Attributes (Migration To Tiles 2)
Date Wed, 05 Nov 2008 10:01:03 GMT
2008/11/4 CRANFORD, CHRIS <Chris.Cranford@setech.com>:
> <tiles:insertAttribute name="header">
>  <tiles:putAttribute name="title"><tiles:getAsString
> name="title"/></tiles:putAttribute>

Oh no, not again...
<tiles:getAsString won't work insice a <tiles:insertAttribute> because
you create a new empty context.
You have to import the "title" attribute outside of <tiles:insertAttribute>:

<tiles:importAttribute name="title" />
<tiles:insertAttribute name="header">
 <tiles:putAttribute name="title"><c:out value="${title}"
/></tiles:putAttribute>
...
</tiles:insertAttribute>

Ciao
Antonio

Mime
View raw message