You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2006/05/10 17:54:24 UTC
svn commit: r405785 [17/20] - in /beehive/trunk/netui: external/struts/
external/struts/legacy/jakarta-struts-1.1-lib/ src/bootstrap/
src/bootstrap/org/apache/beehive/netui/tools/tld/xdoclet/ src/compiler-apt/
src/compiler-apt/META-INF/services/ src/co...
Modified: beehive/trunk/netui/test/webapps/drt/web/javascript/id/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/javascript/id/Controller.java?rev=405785&r1=405784&r2=405785&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/javascript/id/Controller.java (original)
+++ beehive/trunk/netui/test/webapps/drt/web/javascript/id/Controller.java Wed May 10 08:49:42 2006
@@ -1,115 +1,115 @@
-package javascript.id;
-
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-
-import javax.servlet.http.HttpSession;
-import java.io.Serializable;
-
-/**
- * This is the default controller for a blank web application.
- */
-@Jpf.Controller
-public class Controller extends PageFlowController
-{
- private String _text;
- public String getText() {
- return _text;
- }
-
- private String _method;
- public String getMethod() {
- return _method;
- }
-
- @Jpf.Action(
- forwards={
- @Jpf.Forward(name="index", path="index.jsp")
- }
- )
- protected Forward begin()
- {
- 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)
- {
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward post(Bean form)
- {
- Forward forward = new Forward("success");
- _text = form.getText1();
- _method = "post";
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward override(Bean form)
- {
- Forward forward = new Forward("success");
- _text = form.getText1();
- _method = "override";
- return forward;
- }
-
- public static class Bean implements Serializable
- {
- 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;
- }
- }
-}
-
-@Jpf.ViewProperties(value= {"<!-- This data is auto-generated. Hand-editing this section is not recommended. -->",
-"<view-properties>",
-"<pageflow-object id='pageflow:/coretags/imagebutton/id/Controller.jpf'/>",
-"<pageflow-object id='page:index.jsp'><property value='220' name='x'/><property value='100' name='y'/></pageflow-object>",
-"<pageflow-object id='formbean:Bean'/>",
-"<pageflow-object id='action:begin.do'><property value='80' name='x'/><property value='100' name='y'/></pageflow-object>",
-"<pageflow-object id='action:post.do#coretags.imagebutton.id.Controller.Bean'><property name='x' value='340'/><property name='y' value='100'/></pageflow-object>",
-"<pageflow-object id='forward:path#index#index.jsp#@action:begin.do@'><property value='116,140,140,164' name='elbowsX'/><property value='92,92,92,92' name='elbowsY'/><property value='East_1' name='fromPort'/><property value='West_1' name='toPort'/><property value='index' name='label'/></pageflow-object>",
-"<pageflow-object id='action-call:@page:index.jsp@#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='256,280,280,304'/><property name='elbowsY' value='92,92,92,92'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/></pageflow-object>",
-"<pageflow-object id='forward:path#success#index.jsp#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='304,280,280,256'/><property name='elbowsY' value='103,103,103,103'/><property name='fromPort' value='West_2'/><property name='toPort' value='East_2'/><property name='label' value='success'/></pageflow-object>",
-"</view-properties>"
-})
-interface VIEW_PROPERTIES { }
+package javascript.id;
+
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import javax.servlet.http.HttpSession;
+import java.io.Serializable;
+
+/**
+ * This is the default controller for a blank web application.
+ */
+@Jpf.Controller
+public class Controller extends PageFlowController
+{
+ private String _text;
+ public String getText() {
+ return _text;
+ }
+
+ private String _method;
+ public String getMethod() {
+ return _method;
+ }
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ 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)
+ {
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward post(Bean form)
+ {
+ Forward forward = new Forward("success");
+ _text = form.getText1();
+ _method = "post";
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward override(Bean form)
+ {
+ Forward forward = new Forward("success");
+ _text = form.getText1();
+ _method = "override";
+ return forward;
+ }
+
+ public static class Bean implements Serializable
+ {
+ 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;
+ }
+ }
+}
+
+@Jpf.ViewProperties(value= {"<!-- This data is auto-generated. Hand-editing this section is not recommended. -->",
+"<view-properties>",
+"<pageflow-object id='pageflow:/coretags/imagebutton/id/Controller.jpf'/>",
+"<pageflow-object id='page:index.jsp'><property value='220' name='x'/><property value='100' name='y'/></pageflow-object>",
+"<pageflow-object id='formbean:Bean'/>",
+"<pageflow-object id='action:begin.do'><property value='80' name='x'/><property value='100' name='y'/></pageflow-object>",
+"<pageflow-object id='action:post.do#coretags.imagebutton.id.Controller.Bean'><property name='x' value='340'/><property name='y' value='100'/></pageflow-object>",
+"<pageflow-object id='forward:path#index#index.jsp#@action:begin.do@'><property value='116,140,140,164' name='elbowsX'/><property value='92,92,92,92' name='elbowsY'/><property value='East_1' name='fromPort'/><property value='West_1' name='toPort'/><property value='index' name='label'/></pageflow-object>",
+"<pageflow-object id='action-call:@page:index.jsp@#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='256,280,280,304'/><property name='elbowsY' value='92,92,92,92'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/></pageflow-object>",
+"<pageflow-object id='forward:path#success#index.jsp#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='304,280,280,256'/><property name='elbowsY' value='103,103,103,103'/><property name='fromPort' value='West_2'/><property name='toPort' value='East_2'/><property name='label' value='success'/></pageflow-object>",
+"</view-properties>"
+})
+interface VIEW_PROPERTIES { }
Propchange: beehive/trunk/netui/test/webapps/drt/web/javascript/id/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/javascript/id/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Modified: beehive/trunk/netui/test/webapps/drt/web/javascript/idnohtml/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/javascript/idnohtml/Controller.java?rev=405785&r1=405784&r2=405785&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/javascript/idnohtml/Controller.java (original)
+++ beehive/trunk/netui/test/webapps/drt/web/javascript/idnohtml/Controller.java Wed May 10 08:49:42 2006
@@ -1,115 +1,115 @@
-package javascript.idnohtml;
-
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-
-import javax.servlet.http.HttpSession;
-import java.io.Serializable;
-
-/**
- * This is the default controller for a blank web application.
- */
-@Jpf.Controller
-public class Controller extends PageFlowController
-{
- private String _text;
- public String getText() {
- return _text;
- }
-
- private String _method;
- public String getMethod() {
- return _method;
- }
-
- @Jpf.Action(
- forwards={
- @Jpf.Forward(name="index", path="index.jsp")
- }
- )
- protected Forward begin()
- {
- 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)
- {
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward post(Bean form)
- {
- Forward forward = new Forward("success");
- _text = form.getText1();
- _method = "post";
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward override(Bean form)
- {
- Forward forward = new Forward("success");
- _text = form.getText1();
- _method = "override";
- return forward;
- }
-
- public static class Bean implements Serializable
- {
- 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;
- }
- }
-}
-
-@Jpf.ViewProperties(value= {"<!-- This data is auto-generated. Hand-editing this section is not recommended. -->",
-"<view-properties>",
-"<pageflow-object id='pageflow:/coretags/imagebutton/id/Controller.jpf'/>",
-"<pageflow-object id='page:index.jsp'><property value='220' name='x'/><property value='100' name='y'/></pageflow-object>",
-"<pageflow-object id='formbean:Bean'/>",
-"<pageflow-object id='action:begin.do'><property value='80' name='x'/><property value='100' name='y'/></pageflow-object>",
-"<pageflow-object id='action:post.do#coretags.imagebutton.id.Controller.Bean'><property name='x' value='340'/><property name='y' value='100'/></pageflow-object>",
-"<pageflow-object id='forward:path#index#index.jsp#@action:begin.do@'><property value='116,140,140,164' name='elbowsX'/><property value='92,92,92,92' name='elbowsY'/><property value='East_1' name='fromPort'/><property value='West_1' name='toPort'/><property value='index' name='label'/></pageflow-object>",
-"<pageflow-object id='action-call:@page:index.jsp@#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='256,280,280,304'/><property name='elbowsY' value='92,92,92,92'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/></pageflow-object>",
-"<pageflow-object id='forward:path#success#index.jsp#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='304,280,280,256'/><property name='elbowsY' value='103,103,103,103'/><property name='fromPort' value='West_2'/><property name='toPort' value='East_2'/><property name='label' value='success'/></pageflow-object>",
-"</view-properties>"
-})
-interface VIEW_PROPERTIES { }
+package javascript.idnohtml;
+
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import javax.servlet.http.HttpSession;
+import java.io.Serializable;
+
+/**
+ * This is the default controller for a blank web application.
+ */
+@Jpf.Controller
+public class Controller extends PageFlowController
+{
+ private String _text;
+ public String getText() {
+ return _text;
+ }
+
+ private String _method;
+ public String getMethod() {
+ return _method;
+ }
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ 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)
+ {
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward post(Bean form)
+ {
+ Forward forward = new Forward("success");
+ _text = form.getText1();
+ _method = "post";
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward override(Bean form)
+ {
+ Forward forward = new Forward("success");
+ _text = form.getText1();
+ _method = "override";
+ return forward;
+ }
+
+ public static class Bean implements Serializable
+ {
+ 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;
+ }
+ }
+}
+
+@Jpf.ViewProperties(value= {"<!-- This data is auto-generated. Hand-editing this section is not recommended. -->",
+"<view-properties>",
+"<pageflow-object id='pageflow:/coretags/imagebutton/id/Controller.jpf'/>",
+"<pageflow-object id='page:index.jsp'><property value='220' name='x'/><property value='100' name='y'/></pageflow-object>",
+"<pageflow-object id='formbean:Bean'/>",
+"<pageflow-object id='action:begin.do'><property value='80' name='x'/><property value='100' name='y'/></pageflow-object>",
+"<pageflow-object id='action:post.do#coretags.imagebutton.id.Controller.Bean'><property name='x' value='340'/><property name='y' value='100'/></pageflow-object>",
+"<pageflow-object id='forward:path#index#index.jsp#@action:begin.do@'><property value='116,140,140,164' name='elbowsX'/><property value='92,92,92,92' name='elbowsY'/><property value='East_1' name='fromPort'/><property value='West_1' name='toPort'/><property value='index' name='label'/></pageflow-object>",
+"<pageflow-object id='action-call:@page:index.jsp@#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='256,280,280,304'/><property name='elbowsY' value='92,92,92,92'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/></pageflow-object>",
+"<pageflow-object id='forward:path#success#index.jsp#@action:post.do#coretags.imagebutton.id.Controller.Bean@'><property name='elbowsX' value='304,280,280,256'/><property name='elbowsY' value='103,103,103,103'/><property name='fromPort' value='West_2'/><property name='toPort' value='East_2'/><property name='label' value='success'/></pageflow-object>",
+"</view-properties>"
+})
+interface VIEW_PROPERTIES { }
Propchange: beehive/trunk/netui/test/webapps/drt/web/javascript/idnohtml/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/javascript/idnohtml/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/javascript/jsReportError/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/javascript/jsReportError/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Modified: beehive/trunk/netui/test/webapps/drt/web/miniTests/blankCountryValue/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/miniTests/blankCountryValue/Controller.java?rev=405785&r1=405784&r2=405785&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/miniTests/blankCountryValue/Controller.java (original)
+++ beehive/trunk/netui/test/webapps/drt/web/miniTests/blankCountryValue/Controller.java Wed May 10 08:49:42 2006
@@ -1,143 +1,143 @@
-/*
- * 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 miniTests.blankCountryValue;
-
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-
-import javax.servlet.http.HttpSession;
-import java.io.Serializable;
-import java.util.Locale;
-
-@Jpf.Controller(
- validatableBeans = {
- @Jpf.ValidatableBean(
- type = miniTests.blankCountryValue.Controller.ValidateForm.class,
- validatableProperties = {
- @Jpf.ValidatableProperty(
- propertyName = "item",
- validateMinLength =
- @Jpf.ValidateMinLength(
- chars = 2,
- message = "minimum length is 2 characters - All locales"),
- localeRules = {
- @Jpf.ValidationLocaleRules(
- language = "fr",
- country = " ",
- variant = "",
- validateMinLength =
- @Jpf.ValidateMinLength(
- chars = 8,
- message = "minimum length is 8 characters - fr locale")
- )
- }
- )
- }
- )
- }
-)
-public class Controller extends PageFlowController
-{
- private Locale savedLocale = null;
-
- @Jpf.Action(
- forwards={
- @Jpf.Forward(name="index", path="index.jsp")
- }
- )
- protected Forward begin()
- {
- 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)
- {
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- },
- validationErrorForward = @Jpf.Forward(name = "errors",
- path = "index.jsp"))
- protected Forward validate(ValidateForm form)
- {
- Forward forward = new Forward( "success" );
- return forward;
- }
-
-
- public static class ValidateForm implements Serializable
- {
- private String _item;
-
- public String getItem()
- { return this._item; }
-
- public void setItem(String item)
- { this._item = item; }
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward saveLocale()
- {
- savedLocale = getLocale();
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward changeLocale()
- {
- setLocale( new Locale( "fr" ) );
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward resetLocale()
- {
- setLocale( savedLocale );
- Forward forward = new Forward( "success" );
- return forward;
- }
-}
-
+/*
+ * 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 miniTests.blankCountryValue;
+
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import javax.servlet.http.HttpSession;
+import java.io.Serializable;
+import java.util.Locale;
+
+@Jpf.Controller(
+ validatableBeans = {
+ @Jpf.ValidatableBean(
+ type = miniTests.blankCountryValue.Controller.ValidateForm.class,
+ validatableProperties = {
+ @Jpf.ValidatableProperty(
+ propertyName = "item",
+ validateMinLength =
+ @Jpf.ValidateMinLength(
+ chars = 2,
+ message = "minimum length is 2 characters - All locales"),
+ localeRules = {
+ @Jpf.ValidationLocaleRules(
+ language = "fr",
+ country = " ",
+ variant = "",
+ validateMinLength =
+ @Jpf.ValidateMinLength(
+ chars = 8,
+ message = "minimum length is 8 characters - fr locale")
+ )
+ }
+ )
+ }
+ )
+ }
+)
+public class Controller extends PageFlowController
+{
+ private Locale savedLocale = null;
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ 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)
+ {
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ },
+ validationErrorForward = @Jpf.Forward(name = "errors",
+ path = "index.jsp"))
+ protected Forward validate(ValidateForm form)
+ {
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+
+ public static class ValidateForm implements Serializable
+ {
+ private String _item;
+
+ public String getItem()
+ { return this._item; }
+
+ public void setItem(String item)
+ { this._item = item; }
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward saveLocale()
+ {
+ savedLocale = getLocale();
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward changeLocale()
+ {
+ setLocale( new Locale( "fr" ) );
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward resetLocale()
+ {
+ setLocale( savedLocale );
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+}
+
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/blankCountryValue/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/blankCountryValue/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/multiForms2/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/multiForms2/FooForm.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/multiForms2/error.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/multiForms2/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Modified: beehive/trunk/netui/test/webapps/drt/web/miniTests/validateField/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/miniTests/validateField/Controller.java?rev=405785&r1=405784&r2=405785&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/miniTests/validateField/Controller.java (original)
+++ beehive/trunk/netui/test/webapps/drt/web/miniTests/validateField/Controller.java Wed May 10 08:49:42 2006
@@ -1,176 +1,176 @@
-/*
- * 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 miniTests.validateField;
-
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-import org.apache.struts.Globals;
-
-import javax.servlet.http.HttpSession;
-import java.io.Serializable;
-import java.util.Locale;
-
-@Jpf.Controller(
- validatableBeans = {
- @Jpf.ValidatableBean(
- type = miniTests.validateField.Controller.ValidateForm.class,
- validatableProperties = {
- @Jpf.ValidatableProperty(
- propertyName = "item1",
- validateMinLength =
- @Jpf.ValidateMinLength(
- chars = 2,
- message = "minimum length is 2 characters - All locales"),
- localeRules = {
- @Jpf.ValidationLocaleRules(
- language = "fr",
- country = "",
- variant = "",
- validateMinLength =
- @Jpf.ValidateMinLength(
- chars = 6,
- message = "minimum length is 6 characters - fr locale"),
- validateMaxLength =
- @Jpf.ValidateMaxLength(
- chars = 10,
- message = "maximum length is 10 characters - fr locale")
- )
- }
- ),
- @Jpf.ValidatableProperty(
- propertyName = "item2",
- localeRules = {
- @Jpf.ValidationLocaleRules(
- language = "fr",
- country = "",
- variant = "",
- validateMinLength =
- @Jpf.ValidateMinLength(
- chars = 4,
- message = "minimum length is 4 characters - fr locale")
- )
- }
- )
- }
- )
- }
-)
-public class Controller extends PageFlowController
-{
- private Locale savedLocale = null;
-
- @Jpf.Action(
- forwards={
- @Jpf.Forward(name="index", path="index.jsp")
- }
- )
- protected Forward begin()
- {
- 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)
- {
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- },
- validationErrorForward = @Jpf.Forward(name = "errors",
- path = "index.jsp"))
- protected Forward validate(ValidateForm form)
- {
- Forward forward = new Forward( "success" );
- return forward;
- }
-
-
- public static class ValidateForm implements Serializable
- {
- private String _item1;
- private String _item2;
-
- public String getItem1()
- { return this._item1; }
-
- public void setItem1(String item)
- { this._item1 = item; }
-
- public String getItem2()
- { return this._item2; }
-
- public void setItem2(String item)
- { this._item2 = item; }
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward saveLocale()
- {
- savedLocale = getLocale();
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward changeLocale()
- {
- setLocale( new Locale( "fr" ) );
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward resetLocale()
- {
- setLocale( savedLocale );
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- public String getLocaleName()
- {
- Locale l = ( Locale ) getSession().getAttribute( Globals.LOCALE_KEY );
- String localeName = ( l == null ) ? "null" : l.toString();
- return localeName;
- }
-}
-
+/*
+ * 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 miniTests.validateField;
+
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+import org.apache.struts.Globals;
+
+import javax.servlet.http.HttpSession;
+import java.io.Serializable;
+import java.util.Locale;
+
+@Jpf.Controller(
+ validatableBeans = {
+ @Jpf.ValidatableBean(
+ type = miniTests.validateField.Controller.ValidateForm.class,
+ validatableProperties = {
+ @Jpf.ValidatableProperty(
+ propertyName = "item1",
+ validateMinLength =
+ @Jpf.ValidateMinLength(
+ chars = 2,
+ message = "minimum length is 2 characters - All locales"),
+ localeRules = {
+ @Jpf.ValidationLocaleRules(
+ language = "fr",
+ country = "",
+ variant = "",
+ validateMinLength =
+ @Jpf.ValidateMinLength(
+ chars = 6,
+ message = "minimum length is 6 characters - fr locale"),
+ validateMaxLength =
+ @Jpf.ValidateMaxLength(
+ chars = 10,
+ message = "maximum length is 10 characters - fr locale")
+ )
+ }
+ ),
+ @Jpf.ValidatableProperty(
+ propertyName = "item2",
+ localeRules = {
+ @Jpf.ValidationLocaleRules(
+ language = "fr",
+ country = "",
+ variant = "",
+ validateMinLength =
+ @Jpf.ValidateMinLength(
+ chars = 4,
+ message = "minimum length is 4 characters - fr locale")
+ )
+ }
+ )
+ }
+ )
+ }
+)
+public class Controller extends PageFlowController
+{
+ private Locale savedLocale = null;
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ 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)
+ {
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ },
+ validationErrorForward = @Jpf.Forward(name = "errors",
+ path = "index.jsp"))
+ protected Forward validate(ValidateForm form)
+ {
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+
+ public static class ValidateForm implements Serializable
+ {
+ private String _item1;
+ private String _item2;
+
+ public String getItem1()
+ { return this._item1; }
+
+ public void setItem1(String item)
+ { this._item1 = item; }
+
+ public String getItem2()
+ { return this._item2; }
+
+ public void setItem2(String item)
+ { this._item2 = item; }
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward saveLocale()
+ {
+ savedLocale = getLocale();
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward changeLocale()
+ {
+ setLocale( new Locale( "fr" ) );
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward resetLocale()
+ {
+ setLocale( savedLocale );
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ public String getLocaleName()
+ {
+ Locale l = ( Locale ) getSession().getAttribute( Globals.LOCALE_KEY );
+ String localeName = ( l == null ) ? "null" : l.toString();
+ return localeName;
+ }
+}
+
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/validateField/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/validateField/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Modified: beehive/trunk/netui/test/webapps/drt/web/miniTests/variantValidation/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/miniTests/variantValidation/Controller.java?rev=405785&r1=405784&r2=405785&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/miniTests/variantValidation/Controller.java (original)
+++ beehive/trunk/netui/test/webapps/drt/web/miniTests/variantValidation/Controller.java Wed May 10 08:49:42 2006
@@ -1,166 +1,166 @@
-/*
- * 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 miniTests.variantValidation;
-
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-
-import javax.servlet.http.HttpSession;
-import java.io.Serializable;
-import java.util.Locale;
-
-@Jpf.Controller(
- validatableBeans = {
- @Jpf.ValidatableBean(
- type = miniTests.variantValidation.Controller.ValidateForm.class,
- validatableProperties = {
- @Jpf.ValidatableProperty(
- propertyName = "item",
- validateMinLength =
- @Jpf.ValidateMinLength(
- chars = 1,
- message = "minimum length is 1 character - All locale"),
- validateMaxLength =
- @Jpf.ValidateMaxLength(
- chars = 10,
- message = "maximum length is 10 characters - All locale"),
- localeRules = {
- @Jpf.ValidationLocaleRules(
- language = "fr",
- country = "CA",
- variant = "",
- validateMinLength =
- @Jpf.ValidateMinLength(
- chars = 2,
- message = "minimum length is 2 characters - fr_CA locale")
- ),
- @Jpf.ValidationLocaleRules(
- language = "fr",
- country = "CA",
- variant = "MAC",
- validateMaxLength =
- @Jpf.ValidateMaxLength(
- chars = 8,
- message = "maximum length is 8 characters - fr_CA_MAC locale")
- )
- }
- )
- }
- )
- }
-)
-public class Controller extends PageFlowController
-{
- private Locale savedLocale = null;
-
- @Jpf.Action(
- forwards={
- @Jpf.Forward(name="index", path="index.jsp")
- }
- )
- protected Forward begin()
- {
- 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)
- {
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- },
- validationErrorForward = @Jpf.Forward(name = "errors",
- path = "index.jsp"))
- protected Forward validate(ValidateForm form)
- {
- Forward forward = new Forward( "success" );
- return forward;
- }
-
-
- public static class ValidateForm implements Serializable
- {
- private String _item;
-
- public String getItem()
- { return this._item; }
-
- public void setItem(String item)
- { this._item = item; }
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward saveLocale()
- {
- savedLocale = getLocale();
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward changeLocale1()
- {
- setLocale( new Locale( "fr", "CA" ) );
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward changeLocale2()
- {
- setLocale( new Locale( "fr", "CA", "MAC" ) );
- Forward forward = new Forward( "success" );
- return forward;
- }
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward resetLocale()
- {
- setLocale( savedLocale );
- Forward forward = new Forward( "success" );
- return forward;
- }
-}
-
+/*
+ * 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 miniTests.variantValidation;
+
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import javax.servlet.http.HttpSession;
+import java.io.Serializable;
+import java.util.Locale;
+
+@Jpf.Controller(
+ validatableBeans = {
+ @Jpf.ValidatableBean(
+ type = miniTests.variantValidation.Controller.ValidateForm.class,
+ validatableProperties = {
+ @Jpf.ValidatableProperty(
+ propertyName = "item",
+ validateMinLength =
+ @Jpf.ValidateMinLength(
+ chars = 1,
+ message = "minimum length is 1 character - All locale"),
+ validateMaxLength =
+ @Jpf.ValidateMaxLength(
+ chars = 10,
+ message = "maximum length is 10 characters - All locale"),
+ localeRules = {
+ @Jpf.ValidationLocaleRules(
+ language = "fr",
+ country = "CA",
+ variant = "",
+ validateMinLength =
+ @Jpf.ValidateMinLength(
+ chars = 2,
+ message = "minimum length is 2 characters - fr_CA locale")
+ ),
+ @Jpf.ValidationLocaleRules(
+ language = "fr",
+ country = "CA",
+ variant = "MAC",
+ validateMaxLength =
+ @Jpf.ValidateMaxLength(
+ chars = 8,
+ message = "maximum length is 8 characters - fr_CA_MAC locale")
+ )
+ }
+ )
+ }
+ )
+ }
+)
+public class Controller extends PageFlowController
+{
+ private Locale savedLocale = null;
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ 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)
+ {
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ },
+ validationErrorForward = @Jpf.Forward(name = "errors",
+ path = "index.jsp"))
+ protected Forward validate(ValidateForm form)
+ {
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+
+ public static class ValidateForm implements Serializable
+ {
+ private String _item;
+
+ public String getItem()
+ { return this._item; }
+
+ public void setItem(String item)
+ { this._item = item; }
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward saveLocale()
+ {
+ savedLocale = getLocale();
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward changeLocale1()
+ {
+ setLocale( new Locale( "fr", "CA" ) );
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward changeLocale2()
+ {
+ setLocale( new Locale( "fr", "CA", "MAC" ) );
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward resetLocale()
+ {
+ setLocale( savedLocale );
+ Forward forward = new Forward( "success" );
+ return forward;
+ }
+}
+
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/variantValidation/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/miniTests/variantValidation/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/externalRedirect/ExternalRedirectController.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/externalRedirect/externalRedirect.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/externalRedirect/fullyQualifiedRedirect.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/externalRedirect/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/externalRedirect/relativeRedirect.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/perf/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/perf/empty.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: beehive/trunk/netui/test/webapps/drt/web/perf/form10.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Modified: beehive/trunk/netui/test/webapps/drt/web/perf/formPerf/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/perf/formPerf/Controller.java?rev=405785&r1=405784&r2=405785&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/perf/formPerf/Controller.java (original)
+++ beehive/trunk/netui/test/webapps/drt/web/perf/formPerf/Controller.java Wed May 10 08:49:42 2006
@@ -1,200 +1,200 @@
-package perf.formPerf;
-
-import org.apache.beehive.netui.pageflow.Forward;
-import org.apache.beehive.netui.pageflow.PageFlowController;
-import org.apache.beehive.netui.pageflow.annotations.Jpf;
-
-import javax.servlet.http.HttpSession;
-import java.io.Serializable;
-
-@Jpf.Controller
-public class Controller
- extends PageFlowController
-{
- private String[] selectOptions = {"select one", "select two", "select three",
- "select four", "select five", "select six", "select seven"};
-
- public String[] getSelectOptions() {
- return selectOptions;
- }
-
- private String[] radioOptions = {"radio one", "radio two", "radio three",
- "radio four", "radio five", "radio six", "radio seven"};
-
- public String[] getRadioOptions() {
- return radioOptions;
- }
-
-
- @Jpf.Action(
- forwards={
- @Jpf.Forward(name="success", path="index.jsp")
- }
- )
- protected Forward begin()
- {
- return new Forward("success");
- }
-
- /**
- * 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)
- {
- }
-
-
- @Jpf.Action(forwards = {
- @Jpf.Forward(name = "success",
- path = "index.jsp")
- })
- protected Forward postBean(Bean form)
- {
- Forward forward = new Forward("success");
- return forward;
- }
-
- public static class Bean implements Serializable
- {
- private String textOne;
-
- private String textTwo;
-
- private String textThree;
-
- private String textFour;
-
- private boolean boolOne;
-
- private boolean boolTwo;
-
- private String[] select;
-
- private String fullText;
-
- private boolean[] boolArray = {true, true, false, false, false};
-
-
- private String radio;
-
- public String getTextOne()
- {
- return textOne;
- }
-
- public void setTextOne(String value)
- {
- textOne = value;
- }
-
- public String getTextTwo()
- {
- return textTwo;
- }
-
- public void setTextTwo(String value)
- {
- textTwo = value;
- }
-
- public String getTextThree()
- {
- return textThree;
- }
-
- public void setTextThree(String value)
- {
- textThree = value;
- }
-
- public String getTextFour()
- {
- return textFour;
- }
-
- public void setTextFour(String value)
- {
- textFour = value;
- }
-
- public boolean isBoolOne()
- {
- return boolOne;
- }
-
- public void setBoolOne(boolean value)
- {
- boolOne = value;
- }
-
- public boolean isBoolTwo()
- {
- return boolTwo;
- }
-
- public void setBoolTwo(boolean value)
- {
- boolTwo = value;
- }
-
- public String[] getSelect()
- {
- return select;
- }
-
- public void setSelect(String[] value)
- {
- select = value;
- }
-
- public String getFullText()
- {
- return fullText;
- }
-
- public void setFullText(String value)
- {
- fullText = value;
- }
-
- public boolean[] getBoolArray()
- {
- return boolArray;
- }
-
- public void setBoolArray(boolean[] value)
- {
- boolArray = value;
- }
-
- public String getRadio()
- {
- return radio;
- }
-
- public void setRadio(String value)
- {
- radio = value;
- }
- }
-}@Jpf.ViewProperties(value= {"<!-- This data is auto-generated. Hand-editing this section is not recommended. -->",
-"<view-properties>",
-"<pageflow-object id='pageflow:/Controller.jpf'/>",
-"<pageflow-object id='page:error.jsp'><property name='x' value='100'/><property name='y' value='240'/></pageflow-object>",
-"<pageflow-object id='page:index.jsp'><property name='x' value='240'/><property name='y' value='80'/></pageflow-object>",
-"<pageflow-object id='action:begin.do'><property name='x' value='100'/><property name='y' value='80'/></pageflow-object>",
-"<pageflow-object id='forward:path#success#index.jsp#@action:begin.do@'><property name='elbowsX' value='136,170,170,204'/><property name='elbowsY' value='72,72,72,72'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/><property name='label' value='success'/></pageflow-object>",
-"<pageflow-object id='formbean:Bean'/>",
-"<pageflow-object id='action:postBean.do#Controller.Bean'><property name='x' value='380'/><property name='y' value='80'/></pageflow-object>",
-"<pageflow-object id='action-call:@page:index.jsp@#@action:postBean.do#Controller.Bean@'><property name='elbowsX' value='276,310,310,344'/><property name='elbowsY' value='72,72,72,72'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/></pageflow-object>",
-"<pageflow-object id='forward:path#success#index.jsp#@action:postBean.do#Controller.Bean@'/>",
-"</view-properties>"
-})
-interface VIEW_PROPERTIES { }
+package perf.formPerf;
+
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import javax.servlet.http.HttpSession;
+import java.io.Serializable;
+
+@Jpf.Controller
+public class Controller
+ extends PageFlowController
+{
+ private String[] selectOptions = {"select one", "select two", "select three",
+ "select four", "select five", "select six", "select seven"};
+
+ public String[] getSelectOptions() {
+ return selectOptions;
+ }
+
+ private String[] radioOptions = {"radio one", "radio two", "radio three",
+ "radio four", "radio five", "radio six", "radio seven"};
+
+ public String[] getRadioOptions() {
+ return radioOptions;
+ }
+
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="success", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ return new Forward("success");
+ }
+
+ /**
+ * 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)
+ {
+ }
+
+
+ @Jpf.Action(forwards = {
+ @Jpf.Forward(name = "success",
+ path = "index.jsp")
+ })
+ protected Forward postBean(Bean form)
+ {
+ Forward forward = new Forward("success");
+ return forward;
+ }
+
+ public static class Bean implements Serializable
+ {
+ private String textOne;
+
+ private String textTwo;
+
+ private String textThree;
+
+ private String textFour;
+
+ private boolean boolOne;
+
+ private boolean boolTwo;
+
+ private String[] select;
+
+ private String fullText;
+
+ private boolean[] boolArray = {true, true, false, false, false};
+
+
+ private String radio;
+
+ public String getTextOne()
+ {
+ return textOne;
+ }
+
+ public void setTextOne(String value)
+ {
+ textOne = value;
+ }
+
+ public String getTextTwo()
+ {
+ return textTwo;
+ }
+
+ public void setTextTwo(String value)
+ {
+ textTwo = value;
+ }
+
+ public String getTextThree()
+ {
+ return textThree;
+ }
+
+ public void setTextThree(String value)
+ {
+ textThree = value;
+ }
+
+ public String getTextFour()
+ {
+ return textFour;
+ }
+
+ public void setTextFour(String value)
+ {
+ textFour = value;
+ }
+
+ public boolean isBoolOne()
+ {
+ return boolOne;
+ }
+
+ public void setBoolOne(boolean value)
+ {
+ boolOne = value;
+ }
+
+ public boolean isBoolTwo()
+ {
+ return boolTwo;
+ }
+
+ public void setBoolTwo(boolean value)
+ {
+ boolTwo = value;
+ }
+
+ public String[] getSelect()
+ {
+ return select;
+ }
+
+ public void setSelect(String[] value)
+ {
+ select = value;
+ }
+
+ public String getFullText()
+ {
+ return fullText;
+ }
+
+ public void setFullText(String value)
+ {
+ fullText = value;
+ }
+
+ public boolean[] getBoolArray()
+ {
+ return boolArray;
+ }
+
+ public void setBoolArray(boolean[] value)
+ {
+ boolArray = value;
+ }
+
+ public String getRadio()
+ {
+ return radio;
+ }
+
+ public void setRadio(String value)
+ {
+ radio = value;
+ }
+ }
+}@Jpf.ViewProperties(value= {"<!-- This data is auto-generated. Hand-editing this section is not recommended. -->",
+"<view-properties>",
+"<pageflow-object id='pageflow:/Controller.jpf'/>",
+"<pageflow-object id='page:error.jsp'><property name='x' value='100'/><property name='y' value='240'/></pageflow-object>",
+"<pageflow-object id='page:index.jsp'><property name='x' value='240'/><property name='y' value='80'/></pageflow-object>",
+"<pageflow-object id='action:begin.do'><property name='x' value='100'/><property name='y' value='80'/></pageflow-object>",
+"<pageflow-object id='forward:path#success#index.jsp#@action:begin.do@'><property name='elbowsX' value='136,170,170,204'/><property name='elbowsY' value='72,72,72,72'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/><property name='label' value='success'/></pageflow-object>",
+"<pageflow-object id='formbean:Bean'/>",
+"<pageflow-object id='action:postBean.do#Controller.Bean'><property name='x' value='380'/><property name='y' value='80'/></pageflow-object>",
+"<pageflow-object id='action-call:@page:index.jsp@#@action:postBean.do#Controller.Bean@'><property name='elbowsX' value='276,310,310,344'/><property name='elbowsY' value='72,72,72,72'/><property name='fromPort' value='East_1'/><property name='toPort' value='West_1'/></pageflow-object>",
+"<pageflow-object id='forward:path#success#index.jsp#@action:postBean.do#Controller.Bean@'/>",
+"</view-properties>"
+})
+interface VIEW_PROPERTIES { }
Propchange: beehive/trunk/netui/test/webapps/drt/web/perf/formPerf/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native