You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by ap...@apache.org on 2007/12/20 20:34:06 UTC

svn commit: r606007 - /tiles/framework/branches/TILES_2_0_X/tiles-jsp/src/main/resources/META-INF/tld/tiles-jsp.tld

Author: apetrelli
Date: Thu Dec 20 11:34:04 2007
New Revision: 606007

URL: http://svn.apache.org/viewvc?rev=606007&view=rev
Log:
TILES-235
Merge from trunk to TILES_2_0_X branch.
Now the referred tags are <tiles:putAttribute> and <tiles:putListAttribute>

Modified:
    tiles/framework/branches/TILES_2_0_X/tiles-jsp/src/main/resources/META-INF/tld/tiles-jsp.tld

Modified: tiles/framework/branches/TILES_2_0_X/tiles-jsp/src/main/resources/META-INF/tld/tiles-jsp.tld
URL: http://svn.apache.org/viewvc/tiles/framework/branches/TILES_2_0_X/tiles-jsp/src/main/resources/META-INF/tld/tiles-jsp.tld?rev=606007&r1=606006&r2=606007&view=diff
==============================================================================
--- tiles/framework/branches/TILES_2_0_X/tiles-jsp/src/main/resources/META-INF/tld/tiles-jsp.tld (original)
+++ tiles/framework/branches/TILES_2_0_X/tiles-jsp/src/main/resources/META-INF/tld/tiles-jsp.tld Thu Dec 20 11:34:04 2007
@@ -46,21 +46,22 @@
       A template can be seen as a procedure that can take parameters or attributes.
       <code>&lt;tiles:insertTemplate&gt;</code> allows to define these attributes 
       and pass them to the inserted jsp page, called template.
-      Attributes are defined using nested tag <code>&lt;tiles:put&gt;</code> or
-      <code>&lt;tiles:putList&gt;</code>.
+      Attributes are defined using nested tag
+      <code>&lt;tiles:putAttribute&gt;</code> or
+      <code>&lt;tiles:putListAttribute&gt;</code>.
       </p>
       <p>You must specify <li><code>template</code> attribute, for inserting a template</p>
      
       <p><strong>Example : </strong></p>
       <pre>
         <code>
-          &lt;tiles:insertTemplate template="/basic/myLayout.jsp" flush="true">
-             &lt;tiles:put name="title" value="My first page" />
-             &lt;tiles:put name="header" value="/common/header.jsp" />
-             &lt;tiles:put name="footer" value="/common/footer.jsp" />
-             &lt;tiles:put name="menu" value="/basic/menu.jsp" />
-             &lt;tiles:put name="body" value="/basic/helloBody.jsp" />
-          &lt;/tiles:insert>
+          &lt;tiles:insertTemplate template="/basic/myLayout.jsp" flush="true"&gt;
+             &lt;tiles:putAttribute name="title" value="My first page" /&gt;
+             &lt;tiles:putAttribute name="header" value="/common/header.jsp" /&gt;
+             &lt;tiles:putAttribute name="footer" value="/common/footer.jsp" /&gt;
+             &lt;tiles:putAttribute name="menu" value="/basic/menu.jsp" /&gt;
+             &lt;tiles:putAttribute name="body" value="/basic/helloBody.jsp" /&gt;
+          &lt;/tiles:insert&gt;
         </code>
       </pre>
       ]]>
@@ -137,21 +138,21 @@
       can override or complete attribute values.
       <code>&lt;tiles:insertDefinition&gt;</code> allows to define these attributes 
       and pass them to the inserted jsp page, called template.
-      Attributes are defined using nested tag <code>&lt;tiles:put&gt;</code> or
-      <code>&lt;tiles:putList&gt;</code>.
+      Attributes are defined using nested tag <code>&lt;tiles:putAttribute&gt;</code> or
+      <code>&lt;tiles:putListAttribute&gt;</code>.
       </p>
       <p>You must specify <code>name</code> tag attribute, for inserting a definition from 
         definitions factory.</p>
       <p><strong>Example : </strong></p>
       <pre>
         <code>
-          &lt;tiles:insertDefinition name=".my.tiles.defininition flush="true">
-             &lt;tiles:put name="title" value="My first page" />
-             &lt;tiles:put name="header" value="/common/header.jsp" />
-             &lt;tiles:put name="footer" value="/common/footer.jsp" />
-             &lt;tiles:put name="menu" value="/basic/menu.jsp" />
-             &lt;tiles:put name="body" value="/basic/helloBody.jsp" />
-          &lt;/tiles:insertDefinition>
+          &lt;tiles:insertDefinition name=".my.tiles.defininition flush="true"&gt;
+             &lt;tiles:putAttribute name="title" value="My first page" /&gt;
+             &lt;tiles:putAttribute name="header" value="/common/header.jsp" /&gt;
+             &lt;tiles:putAttribute name="footer" value="/common/footer.jsp" /&gt;
+             &lt;tiles:putAttribute name="menu" value="/basic/menu.jsp" /&gt;
+             &lt;tiles:putAttribute name="body" value="/basic/helloBody.jsp" /&gt;
+          &lt;/tiles:insertDefinition&gt;
         </code>
       </pre>
       ]]>