Author: ekoneil
Date: Wed Feb 16 08:02:40 2005
New Revision: 154040

URL: http://svn.apache.org/viewcvs?view=rev&rev=154040
Log:
Add test files for datagrid / XHTML test.



Added:
    
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/
    
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/Controller.jpf
   (with props)
    
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/index.jsp
   (with props)

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/Controller.jpf
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/Controller.jpf?view=auto&rev=154040
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/Controller.jpf
 (added)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/Controller.jpf
 Wed Feb 16 08:02:40 2005
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+package databinding.datagrid.basicXhtml;
+
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+/**
+ *
+ */
[EMAIL PROTECTED]
+public class Controller
+    extends PageFlowController
+{
+    @Jpf.Action(
+        forwards = {
+            @Jpf.Forward(
+                name = "success",
+                path = "index.jsp") 
+        })
+    public Forward begin()
+    {
+        return new Forward("success");
+    }
+}

Propchange: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/Controller.jpf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/index.jsp
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/index.jsp?view=auto&rev=154040
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/index.jsp
 (added)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/index.jsp
 Wed Feb 16 08:02:40 2005
@@ -0,0 +1,43 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0"; prefix="netui"%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0"; 
prefix="netui-data"%>
+<%@ taglib prefix="datagrid" 
tagdir="/WEB-INF/tags/org/apache/beehive/netui/test/databinding/tagfiles" %>
+<%@ page language="java"%>
+
+<netui:html documentType="xhtml1-transitional">
+  <head>
+    <title>NetUI Data Grid Samples</title>
+    <link rel="stylesheet" 
href="${pageContext.request.contextPath}/databinding/datagrid/site/css/default.css"
 type="text/css"/>
+    <netui:base/>
+  </head>
+  <netui:body>
+    <p>
+    <b>Basic Data Grid in XHTML</b>
+    <p>
+    <datagrid:portfolioXmlBean/>
+    <br/>
+    <netui-data:dataGrid dataSource="pageScope.stocks" name="portfolio">
+        <netui-data:configurePager 
pageHref="${pageContext.request.contextPath}"/>
+        <netui-data:header>
+            <netui-data:headerCell headerText="Symbol"/>
+            <netui-data:headerCell headerText="Price"/>
+            <netui-data:headerCell headerText="Web"/>
+        </netui-data:header>
+        <netui-data:rows>
+            <netui-data:spanCell value="${container.item.symbol}"/>
+            <netui-data:spanCell value="${container.item.price}"/>
+            <netui-data:anchorCell value="${container.item.name}" 
href="${container.item.web}">
+                <netui:parameter name="rowid" value="${container.index}"/>
+                <netui:parameter name="symbol" 
value="${container.item.symbol}"/>
+            </netui-data:anchorCell>
+        </netui-data:rows>
+    </netui-data:dataGrid>
+    <br/>
+    <netui:anchor href="index.jsp">Reset</netui:anchor>
+    <br/>
+    </p>
+    </td></tr>
+    </p>
+  </netui:body>
+</netui:html>
+

Propchange: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/databinding/datagrid/basicXhtml/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to