You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/08/03 17:51:59 UTC

svn commit: r800435 [2/2] - in /incubator/click/trunk/examples/click-bench: ./ jmeter/ src/benchmark/click/container/ src/benchmark/stripes/ src/benchmark/tapestry/ src/benchmark/tapestry/pages/ src/benchmark/tapestry/pages/tapestry/ src/benchmark/tape...

Added: incubator/click/trunk/examples/click-bench/web/stripes/customer-list.jsp
URL: http://svn.apache.org/viewvc/incubator/click/trunk/examples/click-bench/web/stripes/customer-list.jsp?rev=800435&view=auto
==============================================================================
--- incubator/click/trunk/examples/click-bench/web/stripes/customer-list.jsp (added)
+++ incubator/click/trunk/examples/click-bench/web/stripes/customer-list.jsp Mon Aug  3 15:51:58 2009
@@ -0,0 +1,50 @@
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
+<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
+
+<html>
+<head>
+<link rel="stylesheet" type="text/css" href="<c:out value="${pageContext.request.contextPath}"/>/styles/default.css"/>
+<title>Customer List</title>
+</head>
+<body>
+
+<h1>Customer List</h1>
+<table class="decorated">
+<thead>
+<tr>
+<td>First Name</td>
+<td>Last Name</td>
+<td>State</td>
+<td>Birth Date</td>
+<td>Options</td>
+</tr>
+</thead>
+<tbody>
+
+<c:forEach var="customer" items="${actionBean.customers}" varStatus="lineInfo">
+
+<c:choose>
+<c:when test="${lineInfo.count % 2 == 0}">
+<tr class="odd">
+</c:when>
+<c:otherwise>
+<tr class="even">
+</c:otherwise>
+
+</c:choose>
+ <td><c:out value="${customer.firstName}"/></td>
+ <td><c:out value="${customer.lastName}"/></td>
+ <td><c:out value="${customer.state}"/></td>
+ <td> <fmt:formatDate value="${customer.birthDate}" pattern="MMMM d, yyyy"/></td>
+ <td>
+  <a href="${pageContext.request.contextPath}/CustomerList.action?id=<c:out value="${index}"/>&amp;value=0&amp;page=0">Edit</a> |
+  <a href="${pageContext.request.contextPath}/CustomerList.action?id=<c:out value="${index}"/>&amp;value=0&amp;page=0">Delete</a>
+ </td>
+</tr>
+</c:forEach>
+
+</tbody>
+</table>
+</body>
+</html>

Modified: incubator/click/trunk/examples/click-bench/web/struts/customer-list.jsp
URL: http://svn.apache.org/viewvc/incubator/click/trunk/examples/click-bench/web/struts/customer-list.jsp?rev=800435&r1=800434&r2=800435&view=diff
==============================================================================
--- incubator/click/trunk/examples/click-bench/web/struts/customer-list.jsp (original)
+++ incubator/click/trunk/examples/click-bench/web/struts/customer-list.jsp Mon Aug  3 15:51:58 2009
@@ -1,6 +1,6 @@
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
-<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
+<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
 <%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
 <%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
 <%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
@@ -24,26 +24,24 @@
 </tr>
 </thead>
 <tbody>
-    
 <logic:iterate name="customers" id="customer" indexId="index">
-    
-  <c:choose>
-   <c:when test="${lineInfo.count % 2 == 0}">
-    <tr class="odd">
-   </c:when>
-   <c:otherwise>
-    <tr class="even">
-   </c:otherwise>
-
-   </c:choose>
-     <td id="table-firstName_<c:out value="${index}"/>"><bean:write name="customer" property="firstName"/></td>
-     <td id="table-lastName_<c:out value="${index}"/>"><bean:write name="customer" property="lastName"/></td>
-     <td id="table-state_<c:out value="${index}"/>"><bean:write name="customer" property="state"/></td>
-     <td id="table-birthDate_<c:out value="${index}"/>"><bean:write name="customer" format="MMMM d, yyyy" property="birthDate"/></td>
-     <td>
-       <a href="/struts/customer-list.do?id=<c:out value="${index}"/>&amp;value=0&amp;page=0">Edit</a> |
-       <a href="/struts/customer-list.do?id=<c:out value="${index}"/>&amp;value=0&amp;page=0">Delete</a>
-     </td>
+<c:choose>
+ <c:when test="${lineInfo.count % 2 == 0}">
+<tr class="odd">
+ </c:when>
+ <c:otherwise>
+<tr class="even">
+ </c:otherwise>
+ </c:choose>
+    <td><bean:write name="customer" property="firstName"/></td>
+    <td><bean:write name="customer" property="lastName"/></td>
+    <td><bean:write name="customer" property="state"/></td>
+    <td><bean:write name="customer" format="MMMM d, yyyy" property="birthDate"/></td>
+    <td>
+      <a href="/struts/customer-list.do?id=<c:out value="${index}"/>&amp;value=0&amp;page=0">Edit</a> |
+      <a href="/struts/customer-list.do?id=<c:out value="${index}"/>&amp;value=0&amp;page=0">Delete</a>
+    </td>
+</tr>
 </logic:iterate>
 
 </tbody>

Added: incubator/click/trunk/examples/click-bench/web/tapestry/CustomerList.tml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/examples/click-bench/web/tapestry/CustomerList.tml?rev=800435&view=auto
==============================================================================
--- incubator/click/trunk/examples/click-bench/web/tapestry/CustomerList.tml (added)
+++ incubator/click/trunk/examples/click-bench/web/tapestry/CustomerList.tml Mon Aug  3 15:51:58 2009
@@ -0,0 +1,19 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
+      xmlns:p="tapestry:parameter">
+    <head>
+        <title>Customer List</title>
+        <link rel="stylesheet" type="text/css" href="/click-bench/styles/default.css"/>
+    </head>
+    <body>
+         <h1>Customer List</h1>
+         <t:grid source="customers" row="customer"
+                 rowsPerPage="100" class="decorated" exclude="id"
+                 lean="true" model="mymodel">
+            <p:deletecell>
+                <t:actionlink t:id="edit" context="customer.id">Edit</t:actionlink>|
+                <t:actionlink t:id="delete" context="customer.id">Delete</t:actionlink>
+            </p:deletecell>
+
+         </t:grid>
+    </body>
+</html>
\ No newline at end of file