Author: dolander
Date: Tue Jan 18 20:14:09 2005
New Revision: 125586

URL: http://svn.apache.org/viewcvs?view=rev&rev=125586
Log:
Repo for Jira #176


Added:
   incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/
   
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf
   incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf?view=auto&rev=125586
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf 
    Tue Jan 18 20:14:09 2005
@@ -0,0 +1,83 @@
+package bugs.j176;
+
+import javax.servlet.http.HttpSession;
+import org.apache.beehive.netui.pageflow.FormData;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+import org.apache.beehive.netui.tags.tree.TreeElement;
+
+/**
+ * This is the default controller for a blank web application.
+ */
[EMAIL PROTECTED]
+public class Controller extends PageFlowController
+{
+    private String _action;
+    public String getAction() {
+       return _action;
+    }
+
+    @Jpf.Action(
+        forwards={
+           @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    protected Forward begin()
+    {
+       _action = "begin";
+        return new Forward("index");
+    }
+
+    @Jpf.Action(
+        forwards={
+           @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    protected Forward post(Bean form)
+    {
+       _action = "post";
+        return new Forward("index");
+    }
+
+    /**
+     * Callback that is invoked when this controller instance is created.
+     */
+    protected void onCreate()
+    {
+    }
+
+    /**
+     * Callback that is invoked when this controller instance is destroyed.
+     */
+    protected void onDestroy(HttpSession session)
+    {
+    }
+
+    public static class Bean extends FormData
+    {
+        private String text1;
+
+        private String text2;
+
+        public String getText1()
+        {
+            return text1;
+        }
+
+        public void setText1(String value)
+        {
+            text1 = value;
+        }
+
+        public String getText2()
+        {
+            return text2;
+        }
+
+        public void setText2(String value)
+        {
+            text2 = value;
+        }
+    }
+}

Added: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp?view=auto&rev=125586
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp  
Tue Jan 18 20:14:09 2005
@@ -0,0 +1,15 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+<netui:html documentType="xhtml1-transitional">
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body>
+        <netui:span value="${pageFlow.action}" />
+       <netui:scriptContainer generateIdScope="true">
+           <netui:form action="post"></netui:form>
+        </netui:scriptContainer>
+        <netui:form action="post"></netui:form>
+    </netui:body>
+</netui:html>
\ No newline at end of file

Reply via email to