If you are extending mainLayout you must have itemcount and pagecount
defined in mainLayout, and so on.  Extending a tile you are using the
same layout and replacing specific pieces of that layout.

I've done something like this in the past:

<tiles-definitions>
    <definition name="ipets.default" path="/layout/default.jsp">
        <put name="title"       value="iPETS" direct="true" />
        <put name="auxnav"      value="/common/auxnav.jsp"/>
        <put name="header"      value="/common/header.jsp"/>
        <put name="menu"        value="/common/menu.jsp"/>
        <put name="bodycontent" value="/home.jsp"/>
        <put name="footer"      value="/common/footer.jsp"/>
        <put name="copyright"   value="/common/copyright.jsp"/>
    </definition>

    <definition name="ipets.specialist" extends="ipets.default">
        <put name="title"       value="iPETS - Specialist Page" />
        <put name="bodycontent"
value="/specialist/specialistDetail.jsp"/>
    </definition>

    <definition name="ipets.probationary" extends="ipets.default">
        <put name="title"       value="iPETS - Probationary Page" />
        <put name="bodycontent" value="/specialist/probList.jsp"/>
    </definition>
</tiles-definitions>


Gary

>>> [EMAIL PROTECTED] 1/25/2006 1:57:23 PM >>>
Hi,

I am new to tiles and I'm trying to do some thing like this:

<definition name="mainLayout" path="/mainLayout.jsp">
        <put name="head" value="/head.jsp" type="page" />
        <put name="main" value="/main.jsp" type="page" />
</definition>

<definition name="subLayout" path="/jsp/layouts/layout_inserate.jsp"
extends="mainLayout">
        <put name="itemcount" value="/itemcount.jsp" />
        <put name="pagecount" value="/pagecount.jsp" />
</definition>

<definition name="myTile" extends="subLayout">
        <put name="data" value="/data.jsp"/>
</definition>

I want the subLayout to inherit the mainLayout's definition and the
tile
"myTile" to extend the subLayout. Is this possible in any way?
Or does anybody know a tutorial about tiles with more levels of depth?

Thanks,
Markus



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________

Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or 
proprietary information and may be used only by the person or entity to which 
it is addressed. If the reader of this email/fax is not the intended recipient 
or his or her agent, the reader is hereby notified that any dissemination, 
distribution or copying of this email/fax is prohibited. If you have received 
this email/fax in error, please notify the sender by replying to this message 
and deleting this email or destroying this facsimile immediately.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to