struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <brenmcgu...@tariffenet.it>
Subject Re: Nested tiles layouts
Date Wed, 02 Aug 2006 14:11:57 GMT
Matt Kurjanowicz ha scritto:
> Hi,
>  I've seen a few threads similar to this, but nothing with my specific 
> problem.
>
>  Suppose I have a tiles definition file, with the following definitions:
> ...
>  Now suppose that I have the following JSP pages:
>  stdLayout.jsp:
>  <html>
>    <head><title><tiles:getAsString name="title" /></title></head>
>    <body>
>      <link rel="stylesheet" type="text/css" href="<tiles:getAsString
> name="css" />" />
>      <tiles:insert name="content" />
>    </body>
>  </html>

I calculated the final result of .lib.home definition and it should be:

<definition name=".lib.home" page="/stdLayout.jsp">
   <put name="title" value="Library Home" />
   <put name="libContent" value="/lib/home.jsp" />
   <put name="css" value="/css/lib/lib.css" />
   <put name="content" value=".lib.layout" type="definition" />
</definition>

But standardLayout has no "libContent" attribute, so it is ignored. 
Anyway if you really got:

<snip>
<TITLE>:
 ----------------------------------------------------------------------
 THIS SHOULD NEVER SHOW UP
 ----------------------------------------------------------------------
</snip>

then it seems that Tiles engine did not replace the "content" attribute, 
you should get:

<snip>
<TITLE>: Library Home
 ----------------------------------------------------------------------
LIB DEFAULT
 ----------------------------------------------------------------------
</snip>

It seems like a bug to me...

Ciao
Antonio


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


Mime
View raw message