You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by cr...@apache.org on 2006/01/29 01:10:46 UTC
svn commit: r373262 - in /beehive/trunk/netui:
src/compiler-core/org/apache/beehive/netui/compiler/
src/compiler-core/org/apache/beehive/netui/compiler/genmodel/
src/compiler-core/org/apache/beehive/netui/compiler/model/
src/pageflow/org/apache/beehive...
Author: crogers
Date: Sat Jan 28 16:10:17 2006
New Revision: 373262
URL: http://svn.apache.org/viewcvs?rev=373262&view=rev
Log:
Fixes for...
http://issues.apache.org/jira/browse/BEEHIVE-1041 - Inheriting Simple Action by DelegatingActionMapping causes a null value object.
http://issues.apache.org/jira/browse/BEEHIVE-1053 - Inheritance of actions and simple actions with the useFormBean annotation attribute do not behave correctly.
I've also added an additional test to cover the useFormBean inheritance.
tests: bvt in netui, including compiler tests (WinXP)
Added:
beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritUseFormBean.xml (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/Controller.java (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/Controller.java (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/index.jsp (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/Controller.java (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/index.jsp (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/Controller.java (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/index.jsp (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/index.jsp (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/Controller.java (with props)
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/index.jsp (with props)
Modified:
beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java
beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingActionModel.java
beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingExceptionModel.java
beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingSimpleActionModel.java
beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java
beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FlowController.java
beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java
beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java
beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/forwards/index.jsp
Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java (original)
+++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/CompilerUtils.java Sat Jan 28 16:10:17 2006
@@ -151,7 +151,6 @@
}
- assert false : "Member " + memberName + " not found on annotation type " + getQualifiedName( annotation );
return null;
}
Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingActionModel.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingActionModel.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingActionModel.java (original)
+++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingActionModel.java Sat Jan 28 16:10:17 2006
@@ -18,6 +18,7 @@
package org.apache.beehive.netui.compiler.genmodel;
import org.apache.beehive.netui.compiler.CompilerUtils;
+import org.apache.beehive.netui.compiler.model.StrutsApp;
import org.apache.beehive.netui.compiler.model.XmlModelWriter;
import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
import org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration;
@@ -51,7 +52,7 @@
String modulePath = CompilerUtils.inferModulePathFromType(containingType);
if (parent instanceof GenSharedFlowStrutsApp) {
// modify the module config path for a shared flow
- modulePath = "/-" + modulePath.substring(1);
+ modulePath = "/" + StrutsApp.STRUTS_CONFIG_SEPARATOR + modulePath.substring(1);
}
addSetProperty("delegateModulePath", modulePath);
Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingExceptionModel.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingExceptionModel.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingExceptionModel.java (original)
+++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingExceptionModel.java Sat Jan 28 16:10:17 2006
@@ -17,11 +17,11 @@
*/
package org.apache.beehive.netui.compiler.genmodel;
+import org.apache.beehive.netui.compiler.model.ExceptionContainer;
import org.apache.beehive.netui.compiler.model.ExceptionModel;
+import org.apache.beehive.netui.compiler.model.StrutsApp;
import org.apache.beehive.netui.compiler.model.XmlModelWriter;
-import org.apache.beehive.netui.compiler.model.ExceptionContainer;
import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
-import org.apache.beehive.netui.compiler.typesystem.declaration.PackageDeclaration;
import org.apache.beehive.netui.compiler.typesystem.declaration.TypeDeclaration;
import org.apache.beehive.netui.compiler.CompilerUtils;
import org.w3c.dom.Element;
@@ -42,7 +42,7 @@
String modulePath = CompilerUtils.inferModulePathFromType(containingType);
if (parentApp instanceof GenSharedFlowStrutsApp) {
// modify the module config path for a shared flow
- modulePath = "/-" + modulePath.substring(1);
+ modulePath = "/" + StrutsApp.STRUTS_CONFIG_SEPARATOR + modulePath.substring(1);
}
addSetProperty("delegateModulePath", modulePath);
addSetProperty("delegateActionPath", container.getActionPath());
Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingSimpleActionModel.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingSimpleActionModel.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingSimpleActionModel.java (original)
+++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/DelegatingSimpleActionModel.java Sat Jan 28 16:10:17 2006
@@ -18,10 +18,13 @@
package org.apache.beehive.netui.compiler.genmodel;
import org.apache.beehive.netui.compiler.CompilerUtils;
+import org.apache.beehive.netui.compiler.model.StrutsApp;
import org.apache.beehive.netui.compiler.model.XmlModelWriter;
import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationInstance;
import org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration;
+import org.apache.beehive.netui.compiler.typesystem.declaration.FieldDeclaration;
import org.apache.beehive.netui.compiler.typesystem.declaration.TypeDeclaration;
+import org.apache.beehive.netui.compiler.typesystem.type.TypeInstance;
import org.w3c.dom.Element;
/**
@@ -44,7 +47,7 @@
String modulePath = CompilerUtils.inferModulePathFromType(containingType);
if (parent instanceof GenSharedFlowStrutsApp) {
// modify the module config path for a shared flow
- modulePath = "/-" + modulePath.substring(1);
+ modulePath = "/" + StrutsApp.STRUTS_CONFIG_SEPARATOR + modulePath.substring(1);
}
addSetProperty("delegateModulePath", modulePath);
@@ -70,9 +73,20 @@
// check for a form bean member in the delegate --
// the page-flow-scoped form referenced by the action (a member variable)
String formMember = CompilerUtils.getString(annotation, USE_FORM_BEAN_ATTR, true);
- if (formMember == null) {
+ if (formMember != null) {
+ setFormMember(formMember);
+ FieldDeclaration field = CompilerUtils.findField(jclass, formMember);
+ assert field != null; // checker should prevent this
+ setFormBeanName(addFormBean(field.getType(), parent));
+ }
+ else {
// can't modify member state; mark as read-only
setReadonly(Boolean.valueOf(true));
+
+ TypeInstance formBeanType = CompilerUtils.getTypeInstance(annotation, USE_FORM_BEAN_TYPE_ATTR, true);
+ if (formBeanType != null) {
+ setFormBeanName(addFormBean(formBeanType, parent));
+ }
}
// rolesAllowed -- avoid setting this if loginRequired is explicitly false.
Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java (original)
+++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/model/StrutsApp.java Sat Jan 28 16:10:17 2006
@@ -72,7 +72,7 @@
protected static final String STRUTS_CONFIG_PREFIX = "struts-config";
protected static final String STRUTS_CONFIG_EXTENSION = ".xml";
- protected static final char STRUTS_CONFIG_SEPARATOR = '-';
+ public static final char STRUTS_CONFIG_SEPARATOR = '-';
protected static final String WEBINF_DIR_NAME = "WEB-INF";
protected static final String STRUTSCONFIG_OUTPUT_DIR = "_pageflow";
protected static final String VALIDATOR_PLUG_IN_CLASSNAME = STRUTS_PACKAGE + ".validator.ValidatorPlugIn";
Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/AutoRegisterActionServlet.java Sat Jan 28 16:10:17 2006
@@ -466,7 +466,7 @@
}
// Force creation and registration of DynaActionFormClass instances
- // for all dynamic form beans we wil be using
+ // for all dynamic form beans we will be using
FormBeanConfig fbs[] = moduleConfig.findFormBeanConfigs();
for ( int i = 0; i < fbs.length; i++ )
{
Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FlowController.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FlowController.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FlowController.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/FlowController.java Sat Jan 28 16:10:17 2006
@@ -1930,15 +1930,28 @@
{
PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping;
String formMember = pfam.getFormMember();
+ if ( formMember == null ) return null;
+ Field field = null;
try
{
- if ( formMember != null )
+ field = getClass().getDeclaredField( formMember );
+ }
+ catch ( NoSuchFieldException e )
+ {
+ // try finding a non-private field from the class hierarchy
+ field = InternalUtils.lookupField( getClass(), formMember );
+ if ( field == null || Modifier.isPrivate( field.getModifiers() ) )
{
- Field field = getClass().getDeclaredField( formMember );
- field.setAccessible( true );
- return InternalUtils.wrapFormBean( field.get( this ) );
+ _log.error( "Could not find member field " + formMember + " as the form bean.");
+ return null;
}
+ }
+
+ try
+ {
+ field.setAccessible( true );
+ return InternalUtils.wrapFormBean( field.get( this ) );
}
catch ( Exception e )
{
Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/PageFlowRequestProcessor.java Sat Jan 28 16:10:17 2006
@@ -152,21 +152,27 @@
{
PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping;
String formMember = pfam.getFormMember();
+ if ( formMember == null ) return null;
+ Field field = null;
+ FlowController fc = PageFlowRequestWrapper.get( request ).getCurrentFlowController();
try
{
- if ( formMember != null )
- {
- FlowController fc = PageFlowRequestWrapper.get( request ).getCurrentFlowController();
- Field field = fc.getClass().getDeclaredField( formMember );
- if ( ! Modifier.isPublic( field.getModifiers() ) ) field.setAccessible( true );
- return field;
- }
+ field = fc.getClass().getDeclaredField( formMember );
}
- catch ( Exception e )
+ catch ( NoSuchFieldException e )
{
- _log.error( "Could not use page flow member " + formMember + " as the form bean.", e );
+ // try finding a non-private field from the class hierarchy
+ field = InternalUtils.lookupField( fc.getClass(), formMember );
+ if ( field == null || Modifier.isPrivate( field.getModifiers() ) )
+ {
+ _log.error("Could not find page flow member " + formMember + " as the form bean.");
+ return null;
+ }
}
+
+ if ( ! Modifier.isPublic( field.getModifiers() ) ) field.setAccessible( true );
+ return field;
}
return null;
Modified: beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java (original)
+++ beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalUtils.java Sat Jan 28 16:10:17 2006
@@ -56,8 +56,7 @@
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
-import java.io.Writer;
-import java.io.PrintWriter;
+import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Iterator;
@@ -274,6 +273,24 @@
{
Class superClass = parentClass.getSuperclass();
return superClass != null ? lookupMethod( superClass, methodName, signature ) : null;
+ }
+ }
+
+ /**
+ * Get a Field in a Class.
+ *
+ * @param parentClass the Class in which to find the Field.
+ * @param fieldName the name of the Field.
+ * @return the Field with the given name, or <code>null</code> if the field does not exist.
+ */
+ public static Field lookupField( Class parentClass, String fieldName )
+ {
+ try {
+ return parentClass.getDeclaredField( fieldName );
+ }
+ catch ( NoSuchFieldException e ) {
+ Class superClass = parentClass.getSuperclass();
+ return superClass != null ? lookupField( superClass, fieldName ) : null;
}
}
Modified: beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml (original)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml Sat Jan 28 16:10:17 2006
@@ -4540,6 +4540,20 @@
</features>
</test>
<test>
+ <name>InheritUseFormBean</name>
+ <description>Test inheritance of actions and simple actions with the useFormBean annotation attribute.</description>
+ <webapp>coreWeb</webapp>
+ <categories>
+ <category>bvt</category>
+ <category>bvt.struts11</category>
+ <category>corePageFlow</category>
+ </categories>
+ <features>
+ <feature>PageFlow</feature>
+ <feature>Inheritance</feature>
+ </features>
+ </test>
+ <test>
<name>InitFormBeanInterface</name>
<description>Test to ensure that we can initialize the form bean on a JSP even when the destination action accepts an interface as its form bean argument, and the previous action passes a concrete implementation of that interface on the Forward. </description>
<webapp>coreWeb</webapp>
Added: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritUseFormBean.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritUseFormBean.xml?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritUseFormBean.xml (added)
+++ beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritUseFormBean.xml Sat Jan 28 16:10:17 2006
@@ -0,0 +1,632 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<recorderSession xmlns="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+<sessionName>InheritUseFormBean</sessionName>
+<tester>crogers</tester>
+<startDate>28 Jan 2006, 04:13:22.920 PM MST</startDate>
+<description>Test that inheritance of actions and simple actions with the useFormBean annotation attribute behave correctly.</description>
+<tests>
+<test>
+<testNumber>1</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/inheritance/useFormBean/</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>UTF-8,*</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.5</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h3>Page Flow Inheritance - Inherit useFormBean annotation attribute</h3>
+ <p>
+ The Jpf.Action and Jpf.SimpleAction annotations include the
+ useFormBean attribute to indicate that the form bean to use
+ with the action is a named member variable, rather than a
+ newly-created instance. This is referred to as a "flow-scoped
+ form bean". The following tests that the inherited actions
+ with useFormBean for a form behave as expected.
+ </p>
+ <ul>
+ <li><a href="simpleActions/begin.do">Parent Controller - Simple Action</a></li>
+ <li><a href="derivedSimpleActions/begin.do">Derived Controller - Inherited Simple Action</a></li>
+ <li><a href="actions/begin.do">Parent Controller - Action</a></li>
+ <li><a href="derivedActions/begin.do">Derived Controller - Inherited Action</a></li>
+ </ul>
+</body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>2</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/begin.do</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>8D6499EB57C954A8DB861BB481D0F1D0</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>UTF-8,*</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.5</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=8D6499EB57C954A8DB861BB481D0F1D0</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/pageFlowCore/inheritance/useFormBean/</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Simple Action useFormBean - Derived Page Flow, inherited simple action</h3>
+ <br/>
+ <form action="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/simpleActionOne.do" method="post">
+ <input type="text" name="{actionForm.name}" value="Form One"><br />
+ Input Value:<span>Form One</span><br />
+ <input type="submit" name="actionOverride:simpleActionOne" value="Simple Action One">
+ </form>
+ <br/>
+ <a href="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/begin.do">begin</a>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>3</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/simpleActionOne.do</uri>
+<method>POST</method>
+<parameters>
+<parameter>
+<name>actionOverride:simpleActionOne</name>
+<value>Simple Action One</value>
+</parameter>
+<parameter>
+<name>{actionForm.name}</name>
+<value>SimpleActionTest</value>
+</parameter>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>8D6499EB57C954A8DB861BB481D0F1D0</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>UTF-8,*</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.5</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>content-length</name>
+<value>89</value>
+</header>
+<header>
+<name>content-type</name>
+<value>application/x-www-form-urlencoded</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=8D6499EB57C954A8DB861BB481D0F1D0</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/begin.do</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Simple Action useFormBean - Derived Page Flow, inherited simple action</h3>
+ <br/>
+ <form action="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/simpleActionOne.do" method="post">
+ <input type="text" name="{actionForm.name}" value="SimpleActionTest"><br />
+ Input Value:<span>SimpleActionTest</span><br />
+ <input type="submit" name="actionOverride:simpleActionOne" value="Simple Action One">
+ </form>
+ <br/>
+ <a href="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/begin.do">begin</a>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>4</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/begin.do</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>8D6499EB57C954A8DB861BB481D0F1D0</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>UTF-8,*</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.5</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=8D6499EB57C954A8DB861BB481D0F1D0</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/simpleActionOne.do</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Simple Action useFormBean - Derived Page Flow, inherited simple action</h3>
+ <br/>
+ <form action="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/simpleActionOne.do" method="post">
+ <input type="text" name="{actionForm.name}" value="SimpleActionTest"><br />
+ Input Value:<span>SimpleActionTest</span><br />
+ <input type="submit" name="actionOverride:simpleActionOne" value="Simple Action One">
+ </form>
+ <br/>
+ <a href="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/begin.do">begin</a>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>5</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/begin.do</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>8D6499EB57C954A8DB861BB481D0F1D0</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>UTF-8,*</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.5</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=8D6499EB57C954A8DB861BB481D0F1D0</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Action useFormBean - Derived Page Flow, inherited action</h3>
+ <br/>
+ <form action="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/actionOne.do" method="post">
+ <input type="text" name="{actionForm.name}" value="Form One"><br />
+ Input Value:<span>Form One</span><br />
+ <input type="submit" name="actionOverride:actionOne" value="Action One">
+ </form>
+ <br/>
+ <a href="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/begin.do">begin</a>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>6</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/actionOne.do</uri>
+<method>POST</method>
+<parameters>
+<parameter>
+<name>actionOverride:actionOne</name>
+<value>Action One</value>
+</parameter>
+<parameter>
+<name>{actionForm.name}</name>
+<value>ActionTest</value>
+</parameter>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>8D6499EB57C954A8DB861BB481D0F1D0</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>UTF-8,*</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.5</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>content-length</name>
+<value>70</value>
+</header>
+<header>
+<name>content-type</name>
+<value>application/x-www-form-urlencoded</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=8D6499EB57C954A8DB861BB481D0F1D0</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/begin.do</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Action useFormBean - Derived Page Flow, inherited action</h3>
+ <br/>
+ <form action="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/actionOne.do" method="post">
+ <input type="text" name="{actionForm.name}" value="ActionTest"><br />
+ Input Value:<span>ActionTest</span><br />
+ <input type="submit" name="actionOverride:actionOne" value="Action One">
+ </form>
+ <br/>
+ <a href="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/begin.do">begin</a>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+<test>
+<testNumber>7</testNumber>
+<request>
+<protocol>HTTP</protocol>
+<protocolVersion>1.1</protocolVersion>
+<host>localhost</host>
+<port>8080</port>
+<uri>/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/begin.do</uri>
+<method>GET</method>
+<parameters>
+</parameters>
+<cookies>
+<cookie>
+<name>JSESSIONID</name>
+<value>8D6499EB57C954A8DB861BB481D0F1D0</value>
+</cookie>
+</cookies>
+<headers>
+<header>
+<name>accept</name>
+<value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</value>
+</header>
+<header>
+<name>accept-charset</name>
+<value>UTF-8,*</value>
+</header>
+<header>
+<name>accept-encoding</name>
+<value>gzip,deflate</value>
+</header>
+<header>
+<name>accept-language</name>
+<value>en-us,en;q=0.5</value>
+</header>
+<header>
+<name>connection</name>
+<value>keep-alive</value>
+</header>
+<header>
+<name>cookie</name>
+<value>JSESSIONID=8D6499EB57C954A8DB861BB481D0F1D0</value>
+</header>
+<header>
+<name>host</name>
+<value>localhost:8080</value>
+</header>
+<header>
+<name>keep-alive</name>
+<value>300</value>
+</header>
+<header>
+<name>referer</name>
+<value>http://localhost:8080/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/actionOne.do</value>
+</header>
+<header>
+<name>user-agent</name>
+<value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5</value>
+</header>
+</headers>
+</request>
+<response>
+<statusCode>200</statusCode>
+<reason></reason>
+<responseBody>
+<![CDATA[<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Action useFormBean - Derived Page Flow, inherited action</h3>
+ <br/>
+ <form action="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/actionOne.do" method="post">
+ <input type="text" name="{actionForm.name}" value="ActionTest"><br />
+ Input Value:<span>ActionTest</span><br />
+ <input type="submit" name="actionOverride:actionOne" value="Action One">
+ </form>
+ <br/>
+ <a href="/coreWeb/pageFlowCore/inheritance/useFormBean/derivedActions/begin.do">begin</a>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>]]>
+</responseBody>
+</response>
+</test>
+</tests>
+<endDate>28 Jan 2006, 04:15:56.450 PM MST</endDate>
+<testCount>7</testCount>
+</recorderSession>
Propchange: beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritUseFormBean.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/forwards/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/forwards/index.jsp?rev=373262&r1=373261&r2=373262&view=diff
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/forwards/index.jsp (original)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/forwards/index.jsp Sat Jan 28 16:10:17 2006
@@ -19,8 +19,3 @@
</ul>
</body>
</html>
-
-
-
-
-
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/Controller.java?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/Controller.java (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/Controller.java Sat Jan 28 16:10:17 2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 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 pageFlowCore.inheritance.useFormBean;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller(
+ simpleActions={
+ @Jpf.SimpleAction(name="begin", path="index.jsp")
+ }
+)
+public class Controller extends PageFlowController
+{
+}
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/Controller.java?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/Controller.java (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/Controller.java Sat Jan 28 16:10:17 2006
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2006 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 pageFlowCore.inheritance.useFormBean.actions;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import java.io.Serializable;
+
+@Jpf.Controller(
+ simpleActions={
+ @Jpf.SimpleAction(name="begin", path="index.jsp")
+ }
+)
+public class Controller extends PageFlowController
+{
+ protected FormOne _formOne = new FormOne();
+ public static class FormOne implements Serializable {
+ private String name = "Form One";
+ public String getName() {
+ return name;
+ }
+ public void setName(String n) {
+ name = n;
+ }
+ }
+
+ @Jpf.Action(
+ useFormBean = "_formOne",
+ forwards = {
+ @Jpf.Forward(
+ name = "success",
+ path = "index.jsp")
+ })
+ public Forward actionOne(FormOne form) {
+ return new Forward("success");
+ }
+}
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/index.jsp?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/index.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/index.jsp Sat Jan 28 16:10:17 2006
@@ -0,0 +1,22 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Action useFormBean - Parent Page Flow</h3>
+ <br/>
+ <netui:form action="/actionOne">
+ <netui:textBox dataSource="actionForm.name" /><br />
+ Input Value:<netui:span value="${actionForm.name}" /><br />
+ <netui:button type="submit" action="actionOne" >Action One</netui:button>
+ </netui:form>
+ <br/>
+ <netui:anchor action="begin">begin</netui:anchor>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/actions/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/Controller.java?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/Controller.java (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/Controller.java Sat Jan 28 16:10:17 2006
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2006 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 pageFlowCore.inheritance.useFormBean.derivedActions;
+
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller()
+public class Controller extends pageFlowCore.inheritance.useFormBean.actions.Controller
+{
+}
+
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/index.jsp?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/index.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/index.jsp Sat Jan 28 16:10:17 2006
@@ -0,0 +1,22 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Action useFormBean - Derived Page Flow, inherited action</h3>
+ <br/>
+ <netui:form action="/actionOne">
+ <netui:textBox dataSource="actionForm.name" /><br />
+ Input Value:<netui:span value="${actionForm.name}" /><br />
+ <netui:button type="submit" action="actionOne" >Action One</netui:button>
+ </netui:form>
+ <br/>
+ <netui:anchor action="begin">begin</netui:anchor>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedActions/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/Controller.java?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/Controller.java (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/Controller.java Sat Jan 28 16:10:17 2006
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2006 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 pageFlowCore.inheritance.useFormBean.derivedSimpleActions;
+
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+@Jpf.Controller()
+public class Controller extends pageFlowCore.inheritance.useFormBean.simpleActions.Controller
+{
+}
+
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/index.jsp?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/index.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/index.jsp Sat Jan 28 16:10:17 2006
@@ -0,0 +1,22 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Simple Action useFormBean - Derived Page Flow, inherited simple action</h3>
+ <br/>
+ <netui:form action="/simpleActionOne">
+ <netui:textBox dataSource="actionForm.name" /><br />
+ Input Value:<netui:span value="${actionForm.name}" /><br />
+ <netui:button type="submit" action="simpleActionOne" >Simple Action One</netui:button>
+ </netui:form>
+ <br/>
+ <netui:anchor action="begin">begin</netui:anchor>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/derivedSimpleActions/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/index.jsp?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/index.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/index.jsp Sat Jan 28 16:10:17 2006
@@ -0,0 +1,25 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui" %>
+
+<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h3>Page Flow Inheritance - Inherit useFormBean annotation attribute</h3>
+ <p>
+ The Jpf.Action and Jpf.SimpleAction annotations include the
+ useFormBean attribute to indicate that the form bean to use
+ with the action is a named member variable, rather than a
+ newly-created instance. This is referred to as a "flow-scoped
+ form bean". The following tests that the inherited actions
+ with useFormBean for a form behave as expected.
+ </p>
+ <ul>
+ <li><a href="simpleActions/begin.do">Parent Controller - Simple Action</a></li>
+ <li><a href="derivedSimpleActions/begin.do">Derived Controller - Inherited Simple Action</a></li>
+ <li><a href="actions/begin.do">Parent Controller - Action</a></li>
+ <li><a href="derivedActions/begin.do">Derived Controller - Inherited Action</a></li>
+ </ul>
+</body>
+</html>
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/Controller.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/Controller.java?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/Controller.java (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/Controller.java Sat Jan 28 16:10:17 2006
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2006 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 pageFlowCore.inheritance.useFormBean.simpleActions;
+
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+import java.io.Serializable;
+
+@Jpf.Controller(
+ simpleActions={
+ @Jpf.SimpleAction(name="begin", path="index.jsp"),
+ @Jpf.SimpleAction(
+ useFormBean = "_formOne",
+ name="simpleActionOne",
+ path="index.jsp")
+ }
+)
+public class Controller extends PageFlowController
+{
+ protected FormOne _formOne = new FormOne();
+ public static class FormOne implements Serializable {
+ private String name = "Form One";
+ public String getName() {
+ return name;
+ }
+ public void setName(String n) {
+ name = n;
+ }
+ }
+}
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/Controller.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/index.jsp
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/index.jsp?rev=373262&view=auto
==============================================================================
--- beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/index.jsp (added)
+++ beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/index.jsp Sat Jan 28 16:10:17 2006
@@ -0,0 +1,22 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+<html>
+<head>
+ <title>Page Flow Inheritance - Inherit useFormBean annotation attribute</title>
+</head>
+<body>
+ <h1>Page Flow Inheritance - Inherit useFormBean annotation attribute</h1>
+ <h3>Simple Action useFormBean - Parent Page Flow</h3>
+ <br/>
+ <netui:form action="/simpleActionOne">
+ <netui:textBox dataSource="actionForm.name" /><br />
+ Input Value:<netui:span value="${actionForm.name}" /><br />
+ <netui:button type="submit" action="simpleActionOne" >Simple Action One</netui:button>
+ </netui:form>
+ <br/>
+ <netui:anchor action="begin">begin</netui:anchor>
+ <br/>
+ <a href="../begin.do">back to start</a>
+</body>
+</html>
Propchange: beehive/trunk/netui/test/webapps/drt/web/pageFlowCore/inheritance/useFormBean/simpleActions/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native