tiles-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r504021 - in /tiles/framework/trunk/tiles-test/src/main/webapp: index.jsp putattributeslayout.jsp testputlist.jsp
Date Tue, 06 Feb 2007 08:06:37 GMT
Author: apetrelli
Date: Tue Feb  6 00:06:36 2007
New Revision: 504021

URL: http://svn.apache.org/viewvc?view=rev&rev=504021
Log:
Added a test for putList tag.
Modified the "putattributeslayout.jsp" file to insert attributes taken from a list.

Added:
    tiles/framework/trunk/tiles-test/src/main/webapp/testputlist.jsp   (with props)
Modified:
    tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp
    tiles/framework/trunk/tiles-test/src/main/webapp/putattributeslayout.jsp

Modified: tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp?view=diff&rev=504021&r1=504020&r2=504021
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp (original)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp Tue Feb  6 00:06:36 2007
@@ -43,6 +43,7 @@
     <a href="testput.jsp">Test Put Tag</a><br/>
     <a href="testput_el.jsp">Test Put Tag using EL</a><br/>
     <a href="testput_servlet.jsp">Test Put Tag using a servlet mapping as a template</a><br/>
+    <a href="testputlist.jsp">Test Put List Tag</a><br/>
     <a href="testimportattribute.jsp">Test importAttribute Tag</a><br/>
     <a href="testimportattribute_all.jsp">Test importAttribute Tag with no name</a><br/>
     <a href="testdecorationfilter.jsp">Test Tiles Definition Filter</a><br/>

Modified: tiles/framework/trunk/tiles-test/src/main/webapp/putattributeslayout.jsp
URL: http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/putattributeslayout.jsp?view=diff&rev=504021&r1=504020&r2=504021
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/putattributeslayout.jsp (original)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/putattributeslayout.jsp Tue Feb  6 00:06:36
2007
@@ -29,6 +29,6 @@
 The attribute "list" contains these values:
 <ul>
 <c:forEach var="item" items="${list}">
-<li><c:out value="${item}" /></li>
+<li><tiles:insertAttribute value="${item}" /></li>
 </c:forEach>
 </ul>

Added: tiles/framework/trunk/tiles-test/src/main/webapp/testputlist.jsp
URL: http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/testputlist.jsp?view=auto&rev=504021
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/testputlist.jsp (added)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/testputlist.jsp Tue Feb  6 00:06:36 2007
@@ -0,0 +1,33 @@
+<%--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+--%>
+<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
+
+<tiles:insertTemplate template="/putattributeslayout.jsp">
+  <tiles:putAttribute name="stringTest" value="This is a string" type="string" />
+  <tiles:putList name="list">
+    <tiles:putAttribute value="valueOne" type="string" />
+    <tiles:putAttribute value="valueTwo" type="string" />
+    <tiles:putAttribute value="valueThree" type="string" />
+  </tiles:putList>
+</tiles:insertTemplate>
\ No newline at end of file

Propchange: tiles/framework/trunk/tiles-test/src/main/webapp/testputlist.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/framework/trunk/tiles-test/src/main/webapp/testputlist.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL



Mime
View raw message