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:
 <definition name=".default" page="/stdLayout.jsp">
   <put name="title" value="Default Title" type="string" />
   <put name="css" value="/css/main.css" />
   <put name="content" value="/defaultContent.jsp" />
 </definition>

 <definition name=".lib.layout" page="/lib/layout.jsp">
   <put name="libContent" value="/lib/default.jsp" />
 </definition>

 <definition name=".lib.default" extends=".default">
   <put name="css" value="/css/lib/lib.css" />
   <put name="content" value=".lib.layout" type="definition" />
 </definition>

 <definition name=".lib.home" extends=".lib.default">
   <put name="title" value="Library Home" />
   <put name="libContent" value="/lib/home.jsp" />
 </definition>

 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>

 defaultContent.jsp:
 THIS SHOULD NEVER SHOW UP

 /lib/layout.jsp
 <hr />
 <tiles:insert name="libContent" />
 <hr />

 /lib/default.jsp
 LIB DEFAULT

 /lib/home.jsp
 LIB HOME

 Now, what I would expect when going to .lib.home is the following:
 <TITLE>: Library Home

 -----------------------------------------------------------------------
 LIB HOME
 -----------------------------------------------------------------------

 Instead, I get:
 <TITLE>:
 ----------------------------------------------------------------------
 THIS SHOULD NEVER SHOW UP
 ----------------------------------------------------------------------


 So basically, every property that is inerited from ".default" can be
overridden, but no property in ".lib.default" (namely the libContent
property) can be overridden.

Is there any way around this?

(Please disregard any syntax errors above - it is merely an example
and not the actual code)

Thanks,
Matt Kurjanowicz

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

Reply via email to