tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcosio <dcco...@gmail.com>
Subject Re: Tiles not building extended content
Date Mon, 06 Oct 2008 20:21:03 GMT

Ah, I tried that and it did fail. This is quite a change from tiles 1. I
guess I will have to go through and redefine these. So, there is no way to
get the current context values out to use them in the putAttribute tags? I
did try "useAttribute tags .. and that didn't work.. This seems strange that
I loose the values

Antonio Petrelli-3 wrote:
> 2008/10/6 dcosio <dccosio@gmail.com>:
>> The main layout jsp code is below.. I did a test to view the values of
>> this
>> code snippet below
>> the "<tiles:insertAttribute name="pageContent">" is equal to
>> "/WEB-INF/layouts/content_layout.jsp " what happens is the "
>> <tiles:putAttribute name="pageContent"  ><tiles:getAsString
>> name="contentPane"   ignore="true"/></tiles:putAttribute>" sets the
>> pageContent in the "content_layout.jsp" from the ".tile.layout.content".
> Perfect interpretation, but the problem is that the
> <tiles:getAsString> tag is inside a <tiles:insertAttribute>
> When you use a <tiles:insertAttribute> you "open a new empty context",
> where you put new attributes through the use of <tiles:putAttribute>.
> So, when you use:
> <tiles:getAsString name="contentPane"   ignore="true"/>
> in fact you are putting nothing. If you did not use the ignore="true"
> attribute, it would have failed.
> Antonio

View this message in context: http://www.nabble.com/Tiles-not-building-extended-content-tp19837124p19845624.html
Sent from the tiles users mailing list archive at Nabble.com.

View raw message