ah.. Im trying to understand your comment about the strange code(BTW: i
didn't write it I just have to support it)I'm also trying to understand it..
But let me use the home page as an example.. Here at the tiles templates
involved/
<definition name=".tile.layout.main"
template="/WEB-INF/layouts/main_layout.jsp">
<put-attribute name="header"
value="/WEB-INF/views/chrome/header.jsp"/>
<put-attribute name="pageTitle" type="string" value="REPLACE_ME"/>
<put-attribute name="pageContent" value="REPLACE_ME"/>
<put-attribute name="footer"
value="/WEB-INF/views/chrome/footer.jsp"/>
</definition>
<definition name=".tile.layout.content" extends=".tile.layout.main">
<put-attribute name="pageContent"
value="/WEB-INF/layouts/content_layout.jsp" />
<put-attribute name="sectionTitle" value="REPLACE_ME" />
<put-attribute name="contentPane" value="REPLACE_ME" />
</definition>
<definition name="tile.home" extends=".tile.layout.main">
<put-attribute name="pageTitle" value="Publisher Central"/>
<put-attribute name="pageContent"
value="/WEB-INF/views/content/home.jsp"/>
</definition>
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".
<tiles:insertAttribute name="pageContent">
<tiles:putAttribute name="pageContent" ><tiles:getAsString
name="contentPane" ignore="true"/></tiles:putAttribute>
<tiles:putAttribute name="sectionTitle" ><tiles:getAsString
name="sectionTitle" ignore="true"/></tiles:putAttribute>
<tiles:putAttribute name="tabs" ><tiles:getAsString
name="tabs" ignore="true"/></tiles:putAttribute>
<tiles:putAttribute name="activeTab" ><tiles:getAsString
name="activeTab" ignore="true"/></tiles:putAttribute>
<tiles:putAttribute name="tabPane" ><tiles:getAsString
name="tabPane" ignore="true"/></tiles:putAttribute>
</tiles:insertAttribute>
Antonio Petrelli-3 wrote:
>
> 2008/10/6 dcosio <[EMAIL PROTECTED]>:
>>
>> I think that code does work. I use the main layout for my home page and
>> the
>> home page works.
>
> I suppose that these pages that "work" do not use the inner attributes
> that you put with that "strange" code.
>
>> Steps 2 and 3 that you
>> defined is similar to what I found in other parts of the forum..
>
> Simply because It was me answering those questions :-D
>
> Ciao
> Antonio
>
>
--
View this message in context:
http://www.nabble.com/Tiles-not-building-extended-content-tp19837124p19841720.html
Sent from the tiles users mailing list archive at Nabble.com.