Author: dolander
Date: Wed Mar 9 12:24:49 2005
New Revision: 156678
URL: http://svn.apache.org/viewcvs?view=rev&rev=156678
Log:
Add Repo for Jira 423
Added:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/Controller.jpf
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/index.jsp
Added:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/Controller.jpf
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/Controller.jpf?view=auto&rev=156678
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/Controller.jpf
(added)
+++
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/Controller.jpf
Wed Mar 9 12:24:49 2005
@@ -0,0 +1,60 @@
+/*
+ * 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.button.param;
+
+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;
+
+/**
+ * This is the default controller for a blank web application.
+ */
[EMAIL PROTECTED]
+public class Controller extends PageFlowController
+{
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ return new Forward("index");
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success", path = "index.jsp")
+ })
+ protected Forward post(FormBean bean) {
+ Forward forward = new Forward("success");
+ return forward;
+ }
+
+ public static class FormBean extends FormData
+ {
+ private String _text;
+
+ public String getText()
+ { return _text; }
+
+ public void setText(String value)
+ { _text = value; }
+ }
+}
Added:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/index.jsp
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/index.jsp?view=auto&rev=156678
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/index.jsp
(added)
+++
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/button/param/index.jsp
Wed Mar 9 12:24:49 2005
@@ -0,0 +1,32 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+<%@ taglib prefix="netui-data"
uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
+<%@ taglib prefix="netui-template"
uri="http://beehive.apache.org/netui/tags-template-1.0"%>
+<netui:html>
+ <head>
+ <netui:base/>
+ </head>
+ <body>
+ <h4>Parameters on Buttons and Anchors</h4>
+ <p style="color:green">This test will verify that setting a location
+ on the form results in the proper navigation to a location within the
+ document. In this case, submitting the form results in going to the
+ bottom of this page.
+ </p>
+ <netui:form action="post">
+ <netui:button value="submit">
+ <netui:parameter name="submit" value="submit" />
+ </netui:button><br>
+ <netui:button value="submit with action" action="post">
+ <netui:parameter name="submit" value="submit with action" />
+ </netui:button><br>
+ <netui:anchor formSubmit="true">Submit the form
+ <netui:parameter name="submit" value="link" />
+ </netui:anchor>
+ </netui:form>
+ <hr>
+ <p>Value: ${param.submit}</p>
+ </body>
+</netui:html>
+
+