Hi Ralf,
It is allowed to nest tiles in an application. However, tiles
attributes are only visible from the tiles, not from its sub-tiles or
from its parent. This behavior is the same as a method call: parameters
are only visible in the method, not in its called methods.
To solve your problem, you need to pass tiles attributes explicitly,
as you would do in a method call:
<tile:insert attribute="body">
<tiles:put name="subview" beanName="subview" beanScope="tiles" />
<tile:insert/>
Hope this help,
Cedric
Ralf E. Stranzenbach wrote:
>Hi,
>
>i've build a small application using Tiles and Struts which worked very
>well.
>
>The setup of all pages is described using the tiles-defs.xml file. For all
>those pages there is a single layout.jsp that contains the layout code and
>inserts all other views of the application.
>
>Last night i've extended the application and there was therequirement of a
>"body" view that sometimes inserts another view on its own.
>
>Therefore i expected to get the following situation
>
>somePage -> maps to body->details.jsp, subview->moredetails.jsp and
>layout.jsp
> -- layout.jsp -> <tile:insert attribute="body">
> -- body: details.jsp -> <tiles:insert attribute="subview">
> -- subview: moredetail.jsp
>
>This is the behaviour i've expected an i want to have. But if i try to
><tiles:insert> in the details.jsp Tiles throws an "subview" attribute not
>found exception.
>
>Is it *NOT* allowed to nest Tiles in an application?
>
>Sincerley,
> - Ralf
>
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>