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><tiles:insertTemplate></code> allows to define these attributes
and pass them to the inserted jsp page, called template.
- Attributes are defined using nested tag <code><tiles:put></code> or
- <code><tiles:putList></code>.
+ Attributes are defined using nested tag
+ <code><tiles:putAttribute></code> or
+ <code><tiles:putListAttribute></code>.
</p>
<p>You must specify <li><code>template</code> attribute, for inserting a template</p>
<p><strong>Example : </strong></p>
<pre>
<code>
- <tiles:insertTemplate template="/basic/myLayout.jsp" flush="true">
- <tiles:put name="title" value="My first page" />
- <tiles:put name="header" value="/common/header.jsp" />
- <tiles:put name="footer" value="/common/footer.jsp" />
- <tiles:put name="menu" value="/basic/menu.jsp" />
- <tiles:put name="body" value="/basic/helloBody.jsp" />
- </tiles:insert>
+ <tiles:insertTemplate template="/basic/myLayout.jsp" flush="true">
+ <tiles:putAttribute name="title" value="My first page" />
+ <tiles:putAttribute name="header" value="/common/header.jsp" />
+ <tiles:putAttribute name="footer" value="/common/footer.jsp" />
+ <tiles:putAttribute name="menu" value="/basic/menu.jsp" />
+ <tiles:putAttribute name="body" value="/basic/helloBody.jsp" />
+ </tiles:insert>
</code>
</pre>
]]>
@@ -137,21 +138,21 @@
can override or complete attribute values.
<code><tiles:insertDefinition></code> allows to define these attributes
and pass them to the inserted jsp page, called template.
- Attributes are defined using nested tag <code><tiles:put></code> or
- <code><tiles:putList></code>.
+ Attributes are defined using nested tag <code><tiles:putAttribute></code> or
+ <code><tiles:putListAttribute></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>
- <tiles:insertDefinition name=".my.tiles.defininition flush="true">
- <tiles:put name="title" value="My first page" />
- <tiles:put name="header" value="/common/header.jsp" />
- <tiles:put name="footer" value="/common/footer.jsp" />
- <tiles:put name="menu" value="/basic/menu.jsp" />
- <tiles:put name="body" value="/basic/helloBody.jsp" />
- </tiles:insertDefinition>
+ <tiles:insertDefinition name=".my.tiles.defininition flush="true">
+ <tiles:putAttribute name="title" value="My first page" />
+ <tiles:putAttribute name="header" value="/common/header.jsp" />
+ <tiles:putAttribute name="footer" value="/common/footer.jsp" />
+ <tiles:putAttribute name="menu" value="/basic/menu.jsp" />
+ <tiles:putAttribute name="body" value="/basic/helloBody.jsp" />
+ </tiles:insertDefinition>
</code>
</pre>
]]>