tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garrett <dhtmlkitc...@gmail.com>
Subject Re: [ANNOUNCE] Tiles 2.0: pass-thru attributes?
Date Sat, 19 May 2007 00:05:50 GMT

Antonio,

That is not what I want to do.

I want to have main.layout for site index and many other pages as well.

I do not understand why extending an object results in infinite recursion in
tiles.

site.index.layout extends main.layout 
site.index.body.content extends body.content

And I the result over and over and over.


Antonio Petrelli-3 wrote:
> 
> 2007/5/12, Garrett <dhtmlkitchen@gmail.com>:
>>
>>         <definition name="main.layout" template="/tiles/main-layout.jsp">
>>                 <put-attribute name="head" value="head.content"/>
>>                 <put-attribute name="body"   value="body.content"/>
>>         </definition>
> 
> 
> 
> You forgot to put the EXTENDED definitions as attribute values!
> Change it this way:
>         <definition name="main.layout" template="/tiles/main-layout.jsp">
>                 <put-attribute name="head"
> value="site.index.head.content"/>
>                 <put-attribute name="body"  
> value="site.index.body.content
> "/>
>         </definition>
> 
> Antonio
> 
> 

-- 
View this message in context: http://www.nabble.com/Tiles-2.0%3A-pass-thru-attributes--tf3729931.html#a10692341
Sent from the tiles users mailing list archive at Nabble.com.


Mime
View raw message