Author: dolander
Date: Fri Feb  4 12:06:04 2005
New Revision: 151402

URL: http://svn.apache.org/viewcvs?view=rev&rev=151402
Log:
svn was hosed due to a bad directory



Added:
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/
    
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Controller.jpf
    
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Results.jsp
    
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/index.jsp

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Controller.jpf
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Controller.jpf?view=auto&rev=151402
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Controller.jpf
 (added)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Controller.jpf
 Fri Feb  4 12:06:04 2005
@@ -0,0 +1,86 @@
+/*
+ * 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 coretags.rbg.hash;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+import java.util.TreeMap;
+
[EMAIL PROTECTED](
+    )
+public class Controller extends PageFlowController
+{
+    private TreeMap opts;
+    private String resultsOne;
+
+    public TreeMap getOpts()
+    {
+        return opts;
+    }
+
+    public String getResultsOne()
+    {
+        return resultsOne;
+    }
+
+    public void setResultsOne(String resultsOne)
+    {
+        this.resultsOne = resultsOne;
+    }
+
+    protected void onCreate()
+    {        
+        opts = new TreeMap();
+        opts.put("val1","Value One");
+        opts.put("val2","Value Two");
+        opts.put("val3","Value Three");
+       opts.put("junk","Junk Value");
+        opts.put("val4","Value Four");
+    }
+    
+    /**
+     * @jpf:action
+     * @jpf:forward name="index" path="index.jsp"
+     */
+    @Jpf.Action(
+        forwards = {
+            @Jpf.Forward(
+                name = "index",
+                path = "index.jsp") 
+        })
+    protected Forward begin()
+    {
+        return new Forward("index");
+    }
+    
+    /**
+     * @jpf:action
+     * @jpf:forward name="index" path="Results.jsp"
+     */
+    @Jpf.Action(
+        forwards = {
+            @Jpf.Forward(
+                name = "index",
+                path = "Results.jsp") 
+        })
+    protected Forward post()
+    {
+        return new Forward("index");
+    }
+}

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Results.jsp
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Results.jsp?view=auto&rev=151402
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Results.jsp
 (added)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/Results.jsp
 Fri Feb  4 12:06:04 2005
@@ -0,0 +1,14 @@
+<[EMAIL PROTECTED] contentType="text/html;charset=UTF-8" language="java"%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="beehive-netui-tags-databinding.tld" prefix="netui-data"%>
+<%@ taglib uri="beehive-netui-tags-html.tld" prefix="netui"%>
+<%@ taglib uri="beehive-netui-tags-template.tld" prefix="netui-template"%>
+<html>
+    <head>
+    </head>
+    <body>
+        <h4>Results One</h4>
+        <netui:anchor action="begin">Home</netui:anchor>
+        <netui:span value="${pageFlow.resultsOne}"/>
+    </body>
+</html>
\ No newline at end of file

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/index.jsp
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/index.jsp?view=auto&rev=151402
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/index.jsp
 (added)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/rbg/hash/index.jsp
 Fri Feb  4 12:06:04 2005
@@ -0,0 +1,41 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="beehive-netui-tags-databinding.tld" prefix="netui-data"%>
+<%@ taglib uri="beehive-netui-tags-html.tld" prefix="netui"%>
+<%@ taglib uri="beehive-netui-tags-template.tld" prefix="netui-template"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
+
+<netui:html>
+  <head>
+    <title>HashMap RadioButtonGroup</title>
+        <style type="text/css">
+        .normalAttr {color: #cc0099;font-family:Verdana; 
font-size:8pt;margin:0,0,0,0;}
+        .normal {color: #cc9999;font-family:Verdana; 
font-size:8pt;margin:0,0,0,0;}
+        .normal2 {color: #00cc99;font-family:Verdana; 
font-size:8pt;margin:0,0,0,0;}
+        .normal3 {color: #99cc99;font-family:Verdana; 
font-size:8pt;margin:0,0,0,0;}
+        </style>
+  </head>
+  <body>
+    <h4>HashMap RadioButtonGroup</h4>
+    <p style="color:green">This is a test of the RadioButtonGroup repeating
+    against a HashMap.  We use JSTL to filter out the key "junk" key.  This
+    test verifies repeating RadioButtonGroups working against a HashMap and
+    using JSTL inside the body of the repeater.</p>
+        <netui:form action="post">
+            <table width="200pt">
+            <caption class="normalAttr">RadioButton Group</caption>
+            <netui:radioButtonGroup dataSource="pageFlow.resultsOne"
+               optionsDataSource="${pageFlow.opts}" repeater="true">
+                <c:if test="${container.item.key != 'junk'}">
+                   <tr align="center"><td align="right" width="25%">
+                      <netui:radioButtonOption value="${container.item.key}" 
/></td>
+                   <td align="left"><netui:span 
value="${container.item.value}" />
+                  </td></tr>
+              </c:if>
+            </netui:radioButtonGroup>
+            </table>
+           <netui:button value="submit"/>
+        </netui:form>
+  </body>
+</netui:html>
+
+  
\ No newline at end of file


Reply via email to