You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Demetz Markus <ne...@webeffects.it> on 2006/01/25 20:57:23 UTC

extend tiles

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: extend tiles

Posted by Greg Reddin <gr...@apache.org>.
 From what I can see your example should accomplish what you are  
looking for.  Is it not working for you?

Greg

On Jan 25, 2006, at 1:57 PM, Demetz Markus wrote:

> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org