Lionel,

The short answer to your question is yes.  Not only is this possible, but I
can't imagine a good design that doesn't do this.  Nesting of definitions is
one of the most powerful features of Tiles.  However, you have a small
syntax error in that your default definition refers to the content
definition as ".content" when its name is "content".  Also, you should have
all definitions in one <tiles-definition> tag... I'm pretty sure?

Tai

-----Original Message-----
From: Lionel Roux [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 22, 2003 11:46 AM
To: [EMAIL PROTECTED]
Subject: [TILES] Inserting a definition in an other definition ?


Is it possible to insert a definition in an other definition ?

<tiles-definitions>
 <definition name="default" path="/layouts/defaultLayout.jsp"> 
  <put name="header" value="/common/header.jsp" />
  <put name="content" value=".content" />
  <put name="copyright" value="/common/copyright.jsp" />
 </definition>
</tiles-definitions>

<tiles-definitions>
 <definition name="content" path="/layouts/contentLayout.jsp"> 
  <put name="menu" value="/common/menu.jsp" />  <put name="body"
value="/common/body.jsp" />
 </definition>
</tiles-definitions>Is this possible? Is ther an other better solution
?__________________________________________
Lionel Roux
mail: [EMAIL PROTECTED]
cell: +33 6 60 51 49 83
__________________________________________
This messages is certified virus free by NAV 2003

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

Reply via email to