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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]