Author: rich
Date: Sun Feb 13 13:26:14 2005
New Revision: 153672
URL: http://svn.apache.org/viewcvs?view=rev&rev=153672
Log:
MyFaces (http://incubator.apache.org/myfaces/index.html) is an open source
implementation of JavaServer Faces. It's a fellow Apache project, and it
deserves first-class treatment in Beehive... so now it has it. This change
does the following:
- Fixes http://issues.apache.org/jira/browse/BEEHIVE-292 : JSF/Page Flow
integration blows up with MyFaces
- Upgrades to MyFaces 1.0.7, for building against the JSF API in the
pageflow module.
- Changes the JSF DRT webapp to run against either MyFaces or the JSF
Reference Implementation. To run against MyFaces, type 'ant drt.myfaces' under
netui/test/webapps/jsf. To run against the JSF RI, type 'ant drt.jsf-ri'.
This checkin also includes a change to the way TestRecorder works. Previously,
the TestRecorder ant target 'server.test' would call back into the webapp build
file to run 'clean' and 'build' targets. This was unnecessary, since the
webapp builds could call these (or depend on these) on their own. The JSF DRT
webapp needed the flexibility to run its new 'build.myfaces' or 'build.jsf-ri',
depending on the DRTs being run, so this needed to change now.
Finally, there's an unrelated fix in here for
http://issues.apache.org/jira/browse/BEEHIVE-293 : Need warning when
@Jpf.Action has both outputFormBean and readOnly=true
DRT/BVT: netui (WinXP)
BB: self (linux)
Added:
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-components.jar
(with props)
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-jsf-api.jar
(with props)
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces.jar
(with props)
incubator/beehive/trunk/netui/test/webapps/jsf/jsf-myfaces.xml
- copied, changed from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/build.xml
incubator/beehive/trunk/netui/test/webapps/jsf/jsf-ri.xml
- copied, changed from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/build.xml
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml.jsf-ri
- copied unchanged from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml.myfaces
- copied, changed from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-jsf-ri.xml
- copied, changed from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-myfaces.xml
- copied, changed from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/
- copied from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/BindingInFaces.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/BindingInFaces.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokeAnchors.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokeAnchors.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokeBundle.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokeBundle.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokeConversions.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokeConversions.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokeDataTable.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokeDataTable.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokeFormOne.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokeFormOne.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokeFormTwo.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokeFormTwo.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokeImage.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokeImage.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/FacesSmokePanel.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/FacesSmokePanel.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/InitMemberFields.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/InitMemberFields.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/JpfFaces.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/JpfFaces.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/RestorePreviousPage.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/RestorePreviousPage.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/SubmitFormBean.xml
- copied unchanged from r153579,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/SubmitFormBean.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/BindingInFaces.xml
(with props)
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/InitMemberFields.xml
(with props)
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/JpfFaces.xml
(with props)
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/SubmitFormBean.xml
(with props)
Removed:
incubator/beehive/trunk/netui/external/jsf/myfaces.jar
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests/
Modified:
incubator/beehive/trunk/netui/ant/netui.properties
incubator/beehive/trunk/netui/netui-imports.xml
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/diagnostics.properties
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/grammar/ActionGrammar.java
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/faces/internal/PageFlowNavigationHandler.java
incubator/beehive/trunk/netui/test/ant/testRecorderCore.xml
incubator/beehive/trunk/netui/test/webapps/drt/build.xml
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
incubator/beehive/trunk/netui/test/webapps/jsf/build.xml
incubator/beehive/trunk/netui/test/webapps/testRecorder-test/build.xml
incubator/beehive/trunk/netui/test/webapps/tomcat/build.xml
incubator/beehive/trunk/netui/test/webapps/urlTemplates/build.xml
Modified: incubator/beehive/trunk/netui/ant/netui.properties
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/ant/netui.properties?view=diff&r1=153671&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/ant/netui.properties (original)
+++ incubator/beehive/trunk/netui/ant/netui.properties Sun Feb 13 13:26:14 2005
@@ -29,7 +29,7 @@
#
---------------------------------------------------------------------------------
struts.dir=${netui.home}/external/struts
-jsf.dir=${netui.home}/external/jsf
+jsf.dir=${netui.home}/external/jsf/myfaces-1.0.7
tomcat.lib.dir=${netui.home}/external/tomcat
#
Added:
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-components.jar
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-components.jar?view=auto&rev=153672
==============================================================================
Binary file - no diff available.
Propchange:
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-components.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added:
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-jsf-api.jar
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-jsf-api.jar?view=auto&rev=153672
==============================================================================
Binary file - no diff available.
Propchange:
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces-jsf-api.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces.jar
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces.jar?view=auto&rev=153672
==============================================================================
Binary file - no diff available.
Propchange:
incubator/beehive/trunk/netui/external/jsf/myfaces-1.0.7/lib/myfaces.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: incubator/beehive/trunk/netui/netui-imports.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/netui-imports.xml?view=diff&r1=153671&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/netui-imports.xml (original)
+++ incubator/beehive/trunk/netui/netui-imports.xml Sun Feb 13 13:26:14 2005
@@ -27,8 +27,8 @@
</path>
<path id="jsf.dependency.path">
- <fileset dir="${jsf.dir}">
- <include name="myfaces.jar"/>
+ <fileset dir="${jsf.dir}/lib">
+ <include name="myfaces-jsf-api.jar"/>
</fileset>
</path>
Modified:
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/diagnostics.properties
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/diagnostics.properties?view=diff&r1=153671&r2=153672
==============================================================================
---
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/diagnostics.properties
(original)
+++
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/diagnostics.properties
Sun Feb 13 13:26:14 2005
@@ -186,3 +186,6 @@
warning.validate-type-on-same-type = \
This {0}(type={1}.class) annotation has no effect, since the property type is
{1}.
+warning.use-form-bean-on-readonly-action = \
+This action has the {0} attribute set to true, but the {1} attribute may cause
the value of member field {2} \
+to be modified.
Modified:
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/grammar/ActionGrammar.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/grammar/ActionGrammar.java?view=diff&r1=153671&r2=153672
==============================================================================
---
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/grammar/ActionGrammar.java
(original)
+++
incubator/beehive/trunk/netui/src/compiler/org/apache/beehive/netui/compiler/grammar/ActionGrammar.java
Sun Feb 13 13:26:14 2005
@@ -28,6 +28,7 @@
import com.sun.mirror.declaration.Modifier;
import com.sun.mirror.declaration.AnnotationTypeElementDeclaration;
import com.sun.mirror.declaration.AnnotationValue;
+import com.sun.mirror.declaration.FieldDeclaration;
import static org.apache.beehive.netui.compiler.JpfLanguageConstants.*;
@@ -43,8 +44,7 @@
addMemberType( LOGIN_REQUIRED_ATTR, new AnnotationMemberType( null,
this ) );
addMemberType( ROLES_ALLOWED_ATTR, new RolesAllowedType( this ) );
addMemberType( READONLY_ATTR, new AnnotationMemberType(
VERSION_8_SP2_STRING, this ) );
- addMemberType( USE_FORM_BEAN_ATTR,
- new WritableFieldType( OBJECT_CLASS_NAME,
USE_FORM_BEAN_ATTR, VERSION_8_SP2_STRING, this ) );
+ addMemberType( USE_FORM_BEAN_ATTR, new UseFormBeanType() );
addMemberType( PREVENT_DOUBLE_SUBMIT_ATTR, new AnnotationMemberType(
null, this ) );
addMemberType( DO_VALIDATION_ATTR, new DoValidateType() );
@@ -67,12 +67,6 @@
protected boolean onBeginCheck( AnnotationMirror annotation,
AnnotationMirror[] parentAnnotations,
MemberDeclaration classMember )
{
- if ( CompilerUtils.hasModifier( classMember, Modifier.ABSTRACT ) )
- {
- addWarning( annotation, "warning.annotated-abstract-method" );
- return false;
- }
-
return true;
}
@@ -115,6 +109,38 @@
ExternalPathOrActionType baseForwardType =
new ExternalPathOrActionType( false, null, this,
ActionGrammar.this.getFlowControllerInfo() );
addMemberType( PATH_ATTR, new ForwardToExternalPathType(
baseForwardType, null, ActionGrammar.this ) );
+ }
+ }
+
+ private class UseFormBeanType
+ extends WritableFieldType
+ {
+ public UseFormBeanType()
+ {
+ super( OBJECT_CLASS_NAME, USE_FORM_BEAN_ATTR, null,
ActionGrammar.this );
+ }
+
+ public Object onCheck( AnnotationTypeElementDeclaration valueDecl,
AnnotationValue value,
+ AnnotationMirror[] parentAnnotations,
MemberDeclaration classMember )
+ {
+ FieldDeclaration memberField =
+ ( FieldDeclaration ) super.onCheck( valueDecl, value,
parentAnnotations, classMember );
+
+ if ( memberField != null )
+ {
+ //
+ // If this action is marked 'readOnly', print a warning about
the 'useFormBean' attribute implicitly
+ // modifying member data.
+ //
+ AnnotationMirror parentAnnotation =
parentAnnotations[parentAnnotations.length - 1];
+ if ( CompilerUtils.getBoolean( parentAnnotation,
READONLY_ATTR, false ) )
+ {
+ addWarning( value,
"warning.use-form-bean-on-readonly-action", READONLY_ATTR, USE_FORM_BEAN_ATTR,
+ memberField.getSimpleName() );
+ }
+ }
+
+ return memberField;
}
}
}
Modified:
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/faces/internal/PageFlowNavigationHandler.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/faces/internal/PageFlowNavigationHandler.java?view=diff&r1=153671&r2=153672
==============================================================================
---
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/faces/internal/PageFlowNavigationHandler.java
(original)
+++
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/faces/internal/PageFlowNavigationHandler.java
Sun Feb 13 13:26:14 2005
@@ -96,7 +96,6 @@
}
context.responseComplete();
- context.setViewRoot( null );
httpRequest.setAttribute( ALREADY_FORWARDED_ATTR,
Boolean.TRUE );
try
Modified: incubator/beehive/trunk/netui/test/ant/testRecorderCore.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/ant/testRecorderCore.xml?view=diff&r1=153671&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/test/ant/testRecorderCore.xml (original)
+++ incubator/beehive/trunk/netui/test/ant/testRecorderCore.xml Sun Feb 13
13:26:14 2005
@@ -107,9 +107,6 @@
-->
<target name="server.test" description="Runs Test Recorder regression
tests">
- <ant target="clean" antfile="${app.build.file}"/>
- <ant target="build" antfile="${app.build.file}"/>
-
<echo>Start a NetUI test server</echo>
<parallel>
Modified: incubator/beehive/trunk/netui/test/webapps/drt/build.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/build.xml?view=diff&r1=153671&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/build.xml (original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/build.xml Sun Feb 13
13:26:14 2005
@@ -114,7 +114,7 @@
</ant>
</target>
- <target name="drt" description="Run the drt suite with full server start /
stop support.">
+ <target name="drt" description="Run the drt suite with full server start /
stop support." depends="clean,build">
<ant dir="${test.dir}" antfile="${test.dir}/ant/testRecorder.xml"
inheritAll="false" target="server.test">
<property name="app.build.file"
location="${app.dir}/drt/build.xml"/>
<property name="waitfor.url" value="${server.root.url}"/>
@@ -125,7 +125,7 @@
<delete file="${webapp.dir}/WEB-INF/netui-config.xml"/>
</target>
- <target name="bvt" description="Run the bvt suite with full server start /
stop support.">
+ <target name="bvt" description="Run the bvt suite with full server start /
stop support." depends="clean,build">
<ant antfile="${test.dir}/ant/testRecorder.xml" inheritAll="false"
target="server.test">
<property name="app.build.file"
location="${app.dir}/drt/build.xml"/>
<property name="waitfor.url" value="${server.root.url}"/>
@@ -135,7 +135,7 @@
</ant>
</target>
- <target name="bvt.struts11" description="Run the bvt suite using Struts
1.1 libraries with full server start / stop support">
+ <target name="bvt.struts11" description="Run the bvt suite using Struts
1.1 libraries with full server start / stop support" depends="clean,build">
<property name="struts.version" value="1.1"/>
<ant antfile="${test.dir}/ant/testRecorder.xml" inheritAll="false"
target="server.test">
<property name="app.build.file"
location="${app.dir}/drt/build.xml"/>
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml?view=diff&r1=153671&r2=153672
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
Sun Feb 13 13:26:14 2005
@@ -5916,6 +5916,21 @@
<webapp>coreWeb</webapp>
</test>
<test>
+ <name>SameBeanDifferentScope</name>
+ <description>Test of two actions on the same page, both of which take
the same type of form bean, but only one of which is "flow-scoped" (uses the
'useFormBean' attribute on @Jpf.Action).</description>
+ <webapp>coreWeb</webapp>
+ <categories>
+ <category>bvt</category>
+ <category>bvt.struts11</category>
+ <category>corePageFlow</category>
+ </categories>
+ <features>
+ <feature>PageFlow</feature>
+ <feature>Any Bean</feature>
+ <feature>Form</feature>
+ </features>
+ </test>
+ <test>
<name>Select</name>
<description>Test directly binding select boxes to page
flows.</description>
<webapp>coreWeb</webapp>
Modified: incubator/beehive/trunk/netui/test/webapps/jsf/build.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/build.xml?view=diff&r1=153671&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/jsf/build.xml (original)
+++ incubator/beehive/trunk/netui/test/webapps/jsf/build.xml Sun Feb 13
13:26:14 2005
@@ -18,31 +18,48 @@
<!-- Targets for building a webapp -->
<!-- -->
<!-- ================================================================ -->
- <target name="build" description="Build webapp">
- <echo message="--------------------------------------------------"/>
- <echo message="| NetUI jsfWeb DRT webapp build starting |"/>
- <echo message="--------------------------------------------------"/>
+ <target name="build.internal" description="Build webapp">
+ <!-- the default version of Struts for the DRTs. To override, pass
-Dstruts.version=1.1 on the command line -->
+ <property name="struts.version" value="1.2"/>
+
+ <echo>struts.version: ${struts.version}</echo>
+
+ <ant antfile="${test.dir}/ant/buildWebapp.xml" target="deploy.netui"
inheritAll="false">
+ <property name="webapp.dir" location="${webapp.dir}"/>
+ <property name="include.testrecorder" value="true"/>
+ <property name="testRecorder.config.name"
value="${testRecorder.config.name}"/>
+ <property name="test.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-tests.xml"/>
+ <property name="config.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-config.xml"/>
+ <property name="webapp.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-webapp-${jsf.dist}.xml"/>
+ <property name="struts.version" value="${struts.version}"/>
+ </ant>
- <fail unless="os.JSF_HOME" message="JSF_HOME must point to the
JavaServer Faces 1.1 Reference Implementation distribution."/>
+ <copy file="${webapp.dir}/WEB-INF/local-netui-config.xml"
+ tofile="${webapp.dir}/WEB-INF/${netuiconfig.xml.name}"
+ overwrite="true" failonerror="false"/>
+
+ <copy file="${webapp.dir}/WEB-INF/web.xml.${jsf.dist}"
+ tofile="${webapp.dir}/WEB-INF/web.xml"
+ overwrite="true" failonerror="true"/>
+
+ <build-webapp webappDir="${webapp.dir}"/>
+
+ <!-- Touch all JSPs to ensure that they're compiled. When switching
between MyFaces and the JSF RI,
+ precompiled JSPs can cause CNFEs. -->
+ <touch>
+ <fileset dir="${webapp.dir}">
+ <include name="**/*.jsp"/>
+ </fileset>
+ </touch>
+
+ </target>
+
+ <target name="build.jsf-ri" description="Build webapp, and deploy the JSF
Reference Implementation">
+ <echo
message="--------------------------------------------------------------------------------------"/>
+ <echo message="| NetUI jsfWeb DRT webapp build starting (using JSF
Reference Implementation) |"/>
+ <echo
message="---------------------------------------------------------------------------------------"/>
- <!-- the default version of Struts for the DRTs. To override, pass
-Dstruts.version=1.1 on the command line -->
- <property name="struts.version" value="1.2"/>
-
- <echo>struts.version: ${struts.version}</echo>
-
- <ant antfile="${test.dir}/ant/buildWebapp.xml"
target="deploy.netui" inheritAll="false">
- <property name="webapp.dir" location="${webapp.dir}"/>
- <property name="include.testrecorder" value="true"/>
- <property name="testRecorder.config.name"
value="${testRecorder.config.name}"/>
- <property name="test.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-tests.xml"/>
- <property name="config.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-config.xml"/>
- <property name="webapp.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-webapp.xml"/>
- <property name="struts.version" value="${struts.version}"/>
- </ant>
-
- <copy file="${webapp.dir}/WEB-INF/local-netui-config.xml"
- tofile="${webapp.dir}/WEB-INF/${netuiconfig.xml.name}"
- overwrite="true" failonerror="false"/>
+ <fail unless="os.JSF_HOME" message="JSF_HOME must point to the
JavaServer Faces 1.1 Reference Implementation distribution."/>
<property name="webinf.dir" value="${webapp.dir}/WEB-INF"/>
<copy todir="${webinf.dir}/lib" overwrite="true" failonerror="true">
@@ -56,12 +73,34 @@
</fileset>
</copy>
- <build-webapp webappDir="${webapp.dir}"/>
+ <property name="jsf.dist" value="jsf-ri"/>
+ <antcall target="build.internal"/>
+
<echo message="--------------------------------------------------"/>
<echo message="| NetUI jsfWeb DRT webapp build ending |"/>
<echo message="--------------------------------------------------"/>
+ </target>
+
+ <target name="build.myfaces" description="Build webapp, and deploy
MyFaces">
+ <echo
message="------------------------------------------------------------------"/>
+ <echo message="| NetUI jsfWeb DRT webapp build starting (using
MyFaces) |"/>
+ <echo
message="------------------------------------------------------------------"/>
+
+ <property name="webinf.dir" value="${webapp.dir}/WEB-INF"/>
+ <copy todir="${webinf.dir}/lib" overwrite="true" failonerror="true">
+ <fileset dir="${jsf.dir}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </copy>
+
+ <property name="jsf.dist" value="myfaces"/>
+ <antcall target="build.internal"/>
+
+ <echo message="--------------------------------------------------"/>
+ <echo message="| NetUI jsfWeb DRT webapp build ending |"/>
+ <echo message="--------------------------------------------------"/>
</target>
<target name="clean" description="Clean webapp">
@@ -70,6 +109,7 @@
<property name="include.testrecorder" value="true"/>
</ant>
<clean-webapp webappDir="${webapp.dir}"/>
+ <delete file="${webapp.dir}/WEB-INF/web.xml"/>
</target>
<!-- ================================================================ -->
@@ -89,7 +129,18 @@
</ant>
</target>
- <target name="drt" description="Run the drt suite with full server start /
stop support.">
+ <target name="drt.jsf-ri" description="Run the drt suite against the JSF
Reference Implementation with full server start / stop support."
depends="clean,build.jsf-ri">
+ <ant antfile="${test.dir}/ant/testRecorder.xml" inheritAll="false"
target="server.test">
+ <property name="app.build.file"
location="${app.dir}/jsf/build.xml"/>
+ <property name="suite.name" value="drt"/>
+ <property name="drt.mode" value="true"/>
+ <property name="playback.webapps" value="${webapp.name}"/>
+ <!-- Wait for the server's root url to see if the server has
started -->
+ <property name="waitfor.url" value="${server.root.url}"/>
+ </ant>
+ </target>
+
+ <target name="drt.myfaces" description="Run the drt suite against the
MyFaces with full server start / stop support." depends="clean,build.myfaces">
<ant antfile="${test.dir}/ant/testRecorder.xml" inheritAll="false"
target="server.test">
<property name="app.build.file"
location="${app.dir}/jsf/build.xml"/>
<property name="suite.name" value="drt"/>
@@ -101,8 +152,42 @@
</target>
<target name="ensure.deployed" description="Deploy webapp">
- <echo>ensure.deployed is NYI</echo>
+ <echo>Ensuring that the webapp ${webapp.name} is deployed on a running
server at the url ${webapp.waitfor.url}</echo>
+
+ <waitfor maxwait="5" maxwaitunit="second"
timeoutproperty="unavailable">
+ <http url="${webapp.waitfor.url}"/>
+ </waitfor>
+ <antcall target="do.deploy"/>
+ <antcall target="do.redeploy"/>
+ <fail if="still.unavailable" message="Couldn't find webapp with path
${webapp.waitfor.url}"/>
+
+ </target>
+
+ <target name="do.deploy" if="unavailable">
+ <echo>Webapp is not deployed; deploying</echo>
+
+ <antcall target="deploy"/>
+ <echo>...deploy complete</echo>
+
+ <waitfor maxwait="120" maxwaitunit="second"
timeoutproperty="still.unavailable">
+ <http url="${webapp.waitfor.url}"/>
+ </waitfor>
</target>
+
+ <target name="do.redeploy" unless="unavailable">
+ <echo>Webapp is deployed; undeploy and redeploy</echo>
+
+ <antcall target="undeploy"/>
+ <echo>...undeploy complete</echo>
+
+ <antcall target="deploy"/>
+ <echo>...deploy complete</echo>
+
+ <waitfor maxwait="120" maxwaitunit="second"
timeoutproperty="still.unavailable">
+ <http url="${webapp.waitfor.url}"/>
+ </waitfor>
+ </target>
+
<!-- ================================================================ -->
<!-- -->
Copied: incubator/beehive/trunk/netui/test/webapps/jsf/jsf-myfaces.xml (from
r151732, incubator/beehive/trunk/netui/test/webapps/jsf/build.xml)
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/jsf-myfaces.xml?view=diff&rev=153672&p1=incubator/beehive/trunk/netui/test/webapps/jsf/build.xml&r1=151732&p2=incubator/beehive/trunk/netui/test/webapps/jsf/jsf-myfaces.xml&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/jsf/build.xml (original)
+++ incubator/beehive/trunk/netui/test/webapps/jsf/jsf-myfaces.xml Sun Feb 13
13:26:14 2005
@@ -18,31 +18,35 @@
<!-- Targets for building a webapp -->
<!-- -->
<!-- ================================================================ -->
- <target name="build" description="Build webapp">
- <echo message="--------------------------------------------------"/>
- <echo message="| NetUI jsfWeb DRT webapp build starting |"/>
- <echo message="--------------------------------------------------"/>
+ <target name="build.internal" description="Build webapp">
+ <!-- the default version of Struts for the DRTs. To override, pass
-Dstruts.version=1.1 on the command line -->
+ <property name="struts.version" value="1.2"/>
+
+ <echo>struts.version: ${struts.version}</echo>
+
+ <ant antfile="${test.dir}/ant/buildWebapp.xml" target="deploy.netui"
inheritAll="false">
+ <property name="webapp.dir" location="${webapp.dir}"/>
+ <property name="include.testrecorder" value="true"/>
+ <property name="testRecorder.config.name"
value="${testRecorder.config.name}"/>
+ <property name="test.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-tests.xml"/>
+ <property name="config.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-config.xml"/>
+ <property name="webapp.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-webapp.xml"/>
+ <property name="struts.version" value="${struts.version}"/>
+ </ant>
+
+ <copy file="${webapp.dir}/WEB-INF/local-netui-config.xml"
+ tofile="${webapp.dir}/WEB-INF/${netuiconfig.xml.name}"
+ overwrite="true" failonerror="false"/>
+ </target>
+
+ <target name="build.jsf-ri" description="Build webapp, and deploy the JSF
Reference Implementation">
+ <echo
message="--------------------------------------------------------------------------------------"/>
+ <echo message="| NetUI jsfWeb DRT webapp build starting (using JSF
Reference Implementation) |"/>
+ <echo
message="---------------------------------------------------------------------------------------"/>
<fail unless="os.JSF_HOME" message="JSF_HOME must point to the
JavaServer Faces 1.1 Reference Implementation distribution."/>
- <!-- the default version of Struts for the DRTs. To override, pass
-Dstruts.version=1.1 on the command line -->
- <property name="struts.version" value="1.2"/>
-
- <echo>struts.version: ${struts.version}</echo>
-
- <ant antfile="${test.dir}/ant/buildWebapp.xml"
target="deploy.netui" inheritAll="false">
- <property name="webapp.dir" location="${webapp.dir}"/>
- <property name="include.testrecorder" value="true"/>
- <property name="testRecorder.config.name"
value="${testRecorder.config.name}"/>
- <property name="test.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-tests.xml"/>
- <property name="config.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-config.xml"/>
- <property name="webapp.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-webapp.xml"/>
- <property name="struts.version" value="${struts.version}"/>
- </ant>
-
- <copy file="${webapp.dir}/WEB-INF/local-netui-config.xml"
- tofile="${webapp.dir}/WEB-INF/${netuiconfig.xml.name}"
- overwrite="true" failonerror="false"/>
+ <antcall target="build.internal"/>
<property name="webinf.dir" value="${webapp.dir}/WEB-INF"/>
<copy todir="${webinf.dir}/lib" overwrite="true" failonerror="true">
@@ -61,7 +65,6 @@
<echo message="--------------------------------------------------"/>
<echo message="| NetUI jsfWeb DRT webapp build ending |"/>
<echo message="--------------------------------------------------"/>
-
</target>
<target name="clean" description="Clean webapp">
@@ -89,7 +92,7 @@
</ant>
</target>
- <target name="drt" description="Run the drt suite with full server start /
stop support.">
+ <target name="drt.jsf-ri" description="Run the drt suite with full server
start / stop support." depends="clean,build.jsf-ri">
<ant antfile="${test.dir}/ant/testRecorder.xml" inheritAll="false"
target="server.test">
<property name="app.build.file"
location="${app.dir}/jsf/build.xml"/>
<property name="suite.name" value="drt"/>
Copied: incubator/beehive/trunk/netui/test/webapps/jsf/jsf-ri.xml (from
r151732, incubator/beehive/trunk/netui/test/webapps/jsf/build.xml)
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/jsf-ri.xml?view=diff&rev=153672&p1=incubator/beehive/trunk/netui/test/webapps/jsf/build.xml&r1=151732&p2=incubator/beehive/trunk/netui/test/webapps/jsf/jsf-ri.xml&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/jsf/build.xml (original)
+++ incubator/beehive/trunk/netui/test/webapps/jsf/jsf-ri.xml Sun Feb 13
13:26:14 2005
@@ -18,31 +18,35 @@
<!-- Targets for building a webapp -->
<!-- -->
<!-- ================================================================ -->
- <target name="build" description="Build webapp">
- <echo message="--------------------------------------------------"/>
- <echo message="| NetUI jsfWeb DRT webapp build starting |"/>
- <echo message="--------------------------------------------------"/>
+ <target name="build.internal" description="Build webapp">
+ <!-- the default version of Struts for the DRTs. To override, pass
-Dstruts.version=1.1 on the command line -->
+ <property name="struts.version" value="1.2"/>
+
+ <echo>struts.version: ${struts.version}</echo>
+
+ <ant antfile="${test.dir}/ant/buildWebapp.xml" target="deploy.netui"
inheritAll="false">
+ <property name="webapp.dir" location="${webapp.dir}"/>
+ <property name="include.testrecorder" value="true"/>
+ <property name="testRecorder.config.name"
value="${testRecorder.config.name}"/>
+ <property name="test.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-tests.xml"/>
+ <property name="config.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-config.xml"/>
+ <property name="webapp.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-webapp.xml"/>
+ <property name="struts.version" value="${struts.version}"/>
+ </ant>
+
+ <copy file="${webapp.dir}/WEB-INF/local-netui-config.xml"
+ tofile="${webapp.dir}/WEB-INF/${netuiconfig.xml.name}"
+ overwrite="true" failonerror="false"/>
+ </target>
+
+ <target name="build.jsf-ri" description="Build webapp, and deploy the JSF
Reference Implementation">
+ <echo
message="--------------------------------------------------------------------------------------"/>
+ <echo message="| NetUI jsfWeb DRT webapp build starting (using JSF
Reference Implementation) |"/>
+ <echo
message="---------------------------------------------------------------------------------------"/>
<fail unless="os.JSF_HOME" message="JSF_HOME must point to the
JavaServer Faces 1.1 Reference Implementation distribution."/>
- <!-- the default version of Struts for the DRTs. To override, pass
-Dstruts.version=1.1 on the command line -->
- <property name="struts.version" value="1.2"/>
-
- <echo>struts.version: ${struts.version}</echo>
-
- <ant antfile="${test.dir}/ant/buildWebapp.xml"
target="deploy.netui" inheritAll="false">
- <property name="webapp.dir" location="${webapp.dir}"/>
- <property name="include.testrecorder" value="true"/>
- <property name="testRecorder.config.name"
value="${testRecorder.config.name}"/>
- <property name="test.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-tests.xml"/>
- <property name="config.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-config.xml"/>
- <property name="webapp.file"
location="${app.dir}/jsf/testRecorder/config/testRecorder-webapp.xml"/>
- <property name="struts.version" value="${struts.version}"/>
- </ant>
-
- <copy file="${webapp.dir}/WEB-INF/local-netui-config.xml"
- tofile="${webapp.dir}/WEB-INF/${netuiconfig.xml.name}"
- overwrite="true" failonerror="false"/>
+ <antcall target="build.internal"/>
<property name="webinf.dir" value="${webapp.dir}/WEB-INF"/>
<copy todir="${webinf.dir}/lib" overwrite="true" failonerror="true">
@@ -61,7 +65,6 @@
<echo message="--------------------------------------------------"/>
<echo message="| NetUI jsfWeb DRT webapp build ending |"/>
<echo message="--------------------------------------------------"/>
-
</target>
<target name="clean" description="Clean webapp">
@@ -89,9 +92,9 @@
</ant>
</target>
- <target name="drt" description="Run the drt suite with full server start /
stop support.">
+ <target name="drt.jsf-ri" description="Run the drt suite with full server
start / stop support." depends="clean,build.jsf-ri">
<ant antfile="${test.dir}/ant/testRecorder.xml" inheritAll="false"
target="server.test">
- <property name="app.build.file"
location="${app.dir}/jsf/build.xml"/>
+ <property name="app.build.file"
location="${app.dir}/jsf/jsf-ri.xml"/>
<property name="suite.name" value="drt"/>
<property name="drt.mode" value="true"/>
<property name="playback.webapps" value="${webapp.name}"/>
Copied:
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml.myfaces
(from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml)
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml.myfaces?view=diff&rev=153672&p1=incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml&r1=151732&p2=incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml.myfaces&r2=153672
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/jsf/jsfWeb/WEB-INF/web.xml.myfaces
Sun Feb 13 13:26:14 2005
@@ -13,25 +13,27 @@
-->
<context-param>
- <param-name>com.sun.faces.validateXml</param-name>
+ <param-name>net.sourceforge.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
<description>
- Set this flag to true if you want the JavaServer Faces
- Reference Implementation to validate the XML in your
- faces-config.xml resources against the DTD. Default
- value is false.
+ This parameter tells MyFaces if javascript code should be allowed
in the
+ rendered HTML output.
+ If javascript is allowed, command_link anchors will have
javascript code
+ that submits the corresponding form.
+ If javascript is not allowed, the state saving info and nested
parameters
+ will be added as url parameters.
+ Default: "true"
</description>
</context-param>
-
+
<context-param>
- <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-name>net.sourceforge.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
<description>
- Set this flag to true if you want the JavaServer Faces
- Reference Implementation to verify that all of the application
- objects you have configured (components, converters,
- renderers, and validators) can be successfully created.
- Default value is false.
+ If true, rendered HTML code will be formatted, so that it is
"human readable".
+ i.e. additional line separators and whitespace will be written,
that do not
+ influence the HTML code.
+ Default: "true"
</description>
</context-param>
@@ -93,7 +95,7 @@
</filter-mapping>
<listener>
- <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
+
<listener-class>net.sourceforge.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
<!-- Test Recorder Servlet (control channel) -->
@@ -181,19 +183,5 @@
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
-
- <jsp-config>
- <!-- the JSF Tag Libraries -->
- <taglib>
- <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
- <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
- </taglib>
-
- <taglib>
- <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
- <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
- </taglib>
-
- </jsp-config>
</web-app>
Copied:
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-jsf-ri.xml
(from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml)
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-jsf-ri.xml?view=diff&rev=153672&p1=incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml&r1=151732&p2=incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-jsf-ri.xml&r2=153672
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-jsf-ri.xml
Sun Feb 13 13:26:14 2005
@@ -8,10 +8,10 @@
<webapps>
<webapp>
<name>jsfWeb</name>
- <description>NetUI / JSF web application</description>
+ <description>NetUI / JSF web application (using JSF Reference
Implementation)</description>
<testMode>true</testMode>
<contextRoot>/jsfWeb</contextRoot>
-
<testDefinitionsDirectory>@DOMAIN_DIR@/jsf/testRecorder/tests</testDefinitionsDirectory>
+
<testDefinitionsDirectory>@DOMAIN_DIR@/jsf/testRecorder/tests-jsf-ri</testDefinitionsDirectory>
</webapp>
</webapps>
</server>
Copied:
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-myfaces.xml
(from r151732,
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml)
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-myfaces.xml?view=diff&rev=153672&p1=incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml&r1=151732&p2=incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-myfaces.xml&r2=153672
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/config/testRecorder-webapp-myfaces.xml
Sun Feb 13 13:26:14 2005
@@ -11,7 +11,7 @@
<description>NetUI / JSF web application</description>
<testMode>true</testMode>
<contextRoot>/jsfWeb</contextRoot>
-
<testDefinitionsDirectory>@DOMAIN_DIR@/jsf/testRecorder/tests</testDefinitionsDirectory>
+
<testDefinitionsDirectory>@DOMAIN_DIR@/jsf/testRecorder/tests-myfaces</testDefinitionsDirectory>
</webapp>
</webapps>
</server>
Added:
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/BindingInFaces.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/BindingInFaces.xml?view=auto&rev=153672
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/BindingInFaces.xml
(added)
+++
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/BindingInFaces.xml
Sun Feb 13 13:26:14 2005
@@ -0,0 +1,492 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+ <ses:sessionName>BindingInFaces</ses:sessionName>
+ <ses:tester>rich</ses:tester>
+ <ses:startDate>13 Feb 2005, 01:24:44.663 PM MST</ses:startDate>
+ <ses:description>Test of binding to pageInput, pageFlow, sharedFlow in a
JSF page.</ses:description>
+ <ses:tests>
+ <ses:test>
+ <ses:testNumber>1</ses:testNumber>
+ <ses:request>
+ <ses:protocol>HTTP</ses:protocol>
+ <ses:protocolVersion>1.1</ses:protocolVersion>
+ <ses:host>localhost</ses:host>
+ <ses:port>8080</ses:port>
+
<ses:uri>/jsfWeb/bindingInFaces/BindingInFacesController.jpf</ses:uri>
+ <ses:method>GET</ses:method>
+ <ses:parameters/>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:cookie>
+ </ses:cookies>
+ <ses:headers>
+ <ses:header>
+ <ses:name>accept</ses:name>
+
<ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-charset</ses:name>
+ <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-encoding</ses:name>
+ <ses:value>gzip,deflate</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-language</ses:name>
+ <ses:value>en-us,en;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+
<ses:value>JSESSIONID=1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>host</ses:name>
+ <ses:value>localhost:8080</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>keep-alive</ses:name>
+ <ses:value>300</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>user-agent</ses:name>
+ <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+ </ses:header>
+ </ses:headers>
+ </ses:request>
+ <ses:response>
+ <ses:statusCode>200</ses:statusCode>
+ <ses:reason/>
+ <ses:responseBody><html>
+ <head>
+ </head>
+ <body>
+
+
+
+
+ <form id="_id0" name="_id0" method="post"
action="/jsfWeb/bindingInFaces/page1.faces"
enctype="application/x-www-form-urlencoded">
+ #{pageInput.somePageInput}: a page input
+ <br/>
+ #{pageFlow.someProperty}: <input id="_id0:_id2"
name="_id0:_id2" type="text" value="page flow property"/>
+ <br/>
+ #{sharedFlow.sf.someProperty}: <input id="_id0:_id3"
name="_id0:_id3" type="text" value="shared flow property"/>
+ <br/>
+ #{backing.someProperty}: <input id="_id0:_id4"
name="_id0:_id4" type="text" value="backing file property"/>
+ <br/>
+ <br/>
+ <input id="_id0:_id5" name="_id0:_id5" type="submit"
value="postback" onclick="clear__5Fid0();"/> This ensures that the page inputs
don't get lost over postback.
+ <br/>
+ <input id="_id0:_id6" name="_id0:_id6" type="submit"
value="get page input from backing" onclick="clear__5Fid0();"/>
+ <span style="color:red"/><span
id="_id0:outputField"></span></span>
+ This ensures that the backing bean has access to page
inputs.
+ <br/>
+ <input id="_id0:_id7" name="_id0:_id7" type="submit"
value="submit" onclick="clear__5Fid0();"/> Send everything to a page flow
action.
+ <input type="hidden" name="_id0_SUBMIT" value="1"/><input
type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
+<!--
+function clear__5Fid0() {
+ var f = document.forms['_id0'];
+ f.elements['_id0:_link_hidden_'].value=null;
+ f.target='';
+}
+clear__5Fid0();
+//-->
+</script></form>
+
+ </body>
+</html></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ <ses:test>
+ <ses:testNumber>2</ses:testNumber>
+ <ses:request>
+ <ses:protocol>HTTP</ses:protocol>
+ <ses:protocolVersion>1.1</ses:protocolVersion>
+ <ses:host>localhost</ses:host>
+ <ses:port>8080</ses:port>
+ <ses:uri>/jsfWeb/bindingInFaces/page1.faces</ses:uri>
+ <ses:method>POST</ses:method>
+ <ses:parameters>
+ <ses:parameter>
+ <ses:name>_id0:_id2</ses:name>
+ <ses:value>page flow property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id3</ses:name>
+ <ses:value>shared flow property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id4</ses:name>
+ <ses:value>backing file property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id5</ses:name>
+ <ses:value>postback</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_link_hidden_</ses:name>
+ <ses:value/>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0_SUBMIT</ses:name>
+ <ses:value>1</ses:value>
+ </ses:parameter>
+ </ses:parameters>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:cookie>
+ </ses:cookies>
+ <ses:headers>
+ <ses:header>
+ <ses:name>accept</ses:name>
+
<ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-charset</ses:name>
+ <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-encoding</ses:name>
+ <ses:value>gzip,deflate</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-language</ses:name>
+ <ses:value>en-us,en;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-length</ses:name>
+ <ses:value>154</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-type</ses:name>
+ <ses:value>application/x-www-form-urlencoded</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+
<ses:value>JSESSIONID=1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>host</ses:name>
+ <ses:value>localhost:8080</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>keep-alive</ses:name>
+ <ses:value>300</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>referer</ses:name>
+
<ses:value>http://localhost:8080/jsfWeb/bindingInFaces/BindingInFacesController.jpf</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>user-agent</ses:name>
+ <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+ </ses:header>
+ </ses:headers>
+ </ses:request>
+ <ses:response>
+ <ses:statusCode>200</ses:statusCode>
+ <ses:reason/>
+ <ses:responseBody><html>
+ <head>
+ </head>
+ <body>
+
+
+
+
+ <form id="_id0" name="_id0" method="post"
action="/jsfWeb/bindingInFaces/page1.faces"
enctype="application/x-www-form-urlencoded">
+ #{pageInput.somePageInput}: a page input
+ <br/>
+ #{pageFlow.someProperty}: <input id="_id0:_id2"
name="_id0:_id2" type="text" value="page flow property"/>
+ <br/>
+ #{sharedFlow.sf.someProperty}: <input id="_id0:_id3"
name="_id0:_id3" type="text" value="shared flow property"/>
+ <br/>
+ #{backing.someProperty}: <input id="_id0:_id4"
name="_id0:_id4" type="text" value="backing file property"/>
+ <br/>
+ <br/>
+ <input id="_id0:_id5" name="_id0:_id5" type="submit"
value="postback" onclick="clear__5Fid0();"/> This ensures that the page inputs
don't get lost over postback.
+ <br/>
+ <input id="_id0:_id6" name="_id0:_id6" type="submit"
value="get page input from backing" onclick="clear__5Fid0();"/>
+ <span style="color:red"/><span
id="_id0:outputField"></span></span>
+ This ensures that the backing bean has access to page
inputs.
+ <br/>
+ <input id="_id0:_id7" name="_id0:_id7" type="submit"
value="submit" onclick="clear__5Fid0();"/> Send everything to a page flow
action.
+ <input type="hidden" name="_id0_SUBMIT" value="1"/><input
type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
+<!--
+function clear__5Fid0() {
+ var f = document.forms['_id0'];
+ f.elements['_id0:_link_hidden_'].value=null;
+ f.target='';
+}
+clear__5Fid0();
+//-->
+</script></form>
+
+ </body>
+</html></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ <ses:test>
+ <ses:testNumber>3</ses:testNumber>
+ <ses:request>
+ <ses:protocol>HTTP</ses:protocol>
+ <ses:protocolVersion>1.1</ses:protocolVersion>
+ <ses:host>localhost</ses:host>
+ <ses:port>8080</ses:port>
+ <ses:uri>/jsfWeb/bindingInFaces/page1.faces</ses:uri>
+ <ses:method>POST</ses:method>
+ <ses:parameters>
+ <ses:parameter>
+ <ses:name>_id0:_id2</ses:name>
+ <ses:value>page flow property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id3</ses:name>
+ <ses:value>shared flow property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id4</ses:name>
+ <ses:value>backing file property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id6</ses:name>
+ <ses:value>get page input from backing</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_link_hidden_</ses:name>
+ <ses:value/>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0_SUBMIT</ses:name>
+ <ses:value>1</ses:value>
+ </ses:parameter>
+ </ses:parameters>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:cookie>
+ </ses:cookies>
+ <ses:headers>
+ <ses:header>
+ <ses:name>accept</ses:name>
+
<ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-charset</ses:name>
+ <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-encoding</ses:name>
+ <ses:value>gzip,deflate</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-language</ses:name>
+ <ses:value>en-us,en;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-length</ses:name>
+ <ses:value>173</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-type</ses:name>
+ <ses:value>application/x-www-form-urlencoded</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+
<ses:value>JSESSIONID=1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>host</ses:name>
+ <ses:value>localhost:8080</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>keep-alive</ses:name>
+ <ses:value>300</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>referer</ses:name>
+
<ses:value>http://localhost:8080/jsfWeb/bindingInFaces/page1.faces</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>user-agent</ses:name>
+ <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+ </ses:header>
+ </ses:headers>
+ </ses:request>
+ <ses:response>
+ <ses:statusCode>200</ses:statusCode>
+ <ses:reason/>
+ <ses:responseBody><html>
+ <head>
+ </head>
+ <body>
+
+
+
+
+ <form id="_id0" name="_id0" method="post"
action="/jsfWeb/bindingInFaces/page1.faces"
enctype="application/x-www-form-urlencoded">
+ #{pageInput.somePageInput}: a page input
+ <br/>
+ #{pageFlow.someProperty}: <input id="_id0:_id2"
name="_id0:_id2" type="text" value="page flow property"/>
+ <br/>
+ #{sharedFlow.sf.someProperty}: <input id="_id0:_id3"
name="_id0:_id3" type="text" value="shared flow property"/>
+ <br/>
+ #{backing.someProperty}: <input id="_id0:_id4"
name="_id0:_id4" type="text" value="backing file property"/>
+ <br/>
+ <br/>
+ <input id="_id0:_id5" name="_id0:_id5" type="submit"
value="postback" onclick="clear__5Fid0();"/> This ensures that the page inputs
don't get lost over postback.
+ <br/>
+ <input id="_id0:_id6" name="_id0:_id6" type="submit"
value="get page input from backing" onclick="clear__5Fid0();"/>
+ <span style="color:red"/><span
id="_id0:outputField">a page input</span></span>
+ This ensures that the backing bean has access to page
inputs.
+ <br/>
+ <input id="_id0:_id7" name="_id0:_id7" type="submit"
value="submit" onclick="clear__5Fid0();"/> Send everything to a page flow
action.
+ <input type="hidden" name="_id0_SUBMIT" value="1"/><input
type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
+<!--
+function clear__5Fid0() {
+ var f = document.forms['_id0'];
+ f.elements['_id0:_link_hidden_'].value=null;
+ f.target='';
+}
+clear__5Fid0();
+//-->
+</script></form>
+
+ </body>
+</html></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ <ses:test>
+ <ses:testNumber>4</ses:testNumber>
+ <ses:request>
+ <ses:protocol>HTTP</ses:protocol>
+ <ses:protocolVersion>1.1</ses:protocolVersion>
+ <ses:host>localhost</ses:host>
+ <ses:port>8080</ses:port>
+ <ses:uri>/jsfWeb/bindingInFaces/page1.faces</ses:uri>
+ <ses:method>POST</ses:method>
+ <ses:parameters>
+ <ses:parameter>
+ <ses:name>_id0:_id2</ses:name>
+ <ses:value>changed page flow property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id3</ses:name>
+ <ses:value>changed shared flow property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id4</ses:name>
+ <ses:value>backing file property</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_id7</ses:name>
+ <ses:value>submit</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_link_hidden_</ses:name>
+ <ses:value/>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0_SUBMIT</ses:name>
+ <ses:value>1</ses:value>
+ </ses:parameter>
+ </ses:parameters>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:cookie>
+ </ses:cookies>
+ <ses:headers>
+ <ses:header>
+ <ses:name>accept</ses:name>
+
<ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-charset</ses:name>
+ <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-encoding</ses:name>
+ <ses:value>gzip,deflate</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-language</ses:name>
+ <ses:value>en-us,en;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-length</ses:name>
+ <ses:value>168</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-type</ses:name>
+ <ses:value>application/x-www-form-urlencoded</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+
<ses:value>JSESSIONID=1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>host</ses:name>
+ <ses:value>localhost:8080</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>keep-alive</ses:name>
+ <ses:value>300</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>referer</ses:name>
+
<ses:value>http://localhost:8080/jsfWeb/bindingInFaces/page1.faces</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>user-agent</ses:name>
+ <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+ </ses:header>
+ </ses:headers>
+ </ses:request>
+ <ses:response>
+ <ses:statusCode>200</ses:statusCode>
+ <ses:reason/>
+ <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN"
+>
+<html lang="en">
+
+ <head>
+ <base href="http://localhost:8080/jsfWeb/bindingInFaces/results.jsp">
+ </head>
+ <body>
+ ${pageFlow.someProperty}: <span>changed page flow property</span>
+ <br/>
+ ${sharedFlow.sf.someProperty}: <span>changed shared flow
property</span>
+ <br/>
+ <a href="/jsfWeb/bindingInFaces/begin.do">start over</a>
+ </body>
+
+</html>]]></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ </ses:tests>
+ <ses:endDate>13 Feb 2005, 01:27:38.854 PM MST</ses:endDate>
+ <ses:testCount>4</ses:testCount>
+</ses:recorderSession>
Propchange:
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/BindingInFaces.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added:
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/InitMemberFields.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/InitMemberFields.xml?view=auto&rev=153672
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/InitMemberFields.xml
(added)
+++
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/InitMemberFields.xml
Sun Feb 13 13:26:14 2005
@@ -0,0 +1,206 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+ <ses:sessionName>InitMemberFields</ses:sessionName>
+ <ses:tester>rich</ses:tester>
+ <ses:startDate>13 Feb 2005, 01:28:51.198 PM MST</ses:startDate>
+ <ses:description>Test of initialization of backing class fields marked with
@Jpf.SharedFlowField and @Jpf.PageFlowField.</ses:description>
+ <ses:tests>
+ <ses:test>
+ <ses:testNumber>1</ses:testNumber>
+ <ses:request>
+ <ses:protocol>HTTP</ses:protocol>
+ <ses:protocolVersion>1.1</ses:protocolVersion>
+ <ses:host>localhost</ses:host>
+ <ses:port>8080</ses:port>
+
<ses:uri>/jsfWeb/initMemberFields/InitMemberFieldsController.jpf</ses:uri>
+ <ses:method>GET</ses:method>
+ <ses:parameters/>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:cookie>
+ </ses:cookies>
+ <ses:headers>
+ <ses:header>
+ <ses:name>accept</ses:name>
+
<ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-charset</ses:name>
+ <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-encoding</ses:name>
+ <ses:value>gzip,deflate</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-language</ses:name>
+ <ses:value>en-us,en;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+
<ses:value>JSESSIONID=1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>host</ses:name>
+ <ses:value>localhost:8080</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>keep-alive</ses:name>
+ <ses:value>300</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>user-agent</ses:name>
+ <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+ </ses:header>
+ </ses:headers>
+ </ses:request>
+ <ses:response>
+ <ses:statusCode>200</ses:statusCode>
+ <ses:reason/>
+ <ses:responseBody><![CDATA[<html>
+ <head>
+ </head>
+ <body>
+
+ <form id="_id0" name="_id0" method="post"
action="/jsfWeb/initMemberFields/page1.faces"
enctype="application/x-www-form-urlencoded">
+ <input id="_id0:_id1" name="_id0:_id1" type="submit"
value="check fields" onclick="clear__5Fid0();"/>
+ <br/>
+ page flow is of type:
+ <br/>
+ shared flow is of type:
+ <br/>
+ <input type="hidden" name="_id0_SUBMIT" value="1"/><input
type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
+<!--
+function clear__5Fid0() {
+ var f = document.forms['_id0'];
+ f.elements['_id0:_link_hidden_'].value=null;
+ f.target='';
+}
+clear__5Fid0();
+//-->
+</script></form>
+
+ </body>
+</html>]]></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ <ses:test>
+ <ses:testNumber>2</ses:testNumber>
+ <ses:request>
+ <ses:protocol>HTTP</ses:protocol>
+ <ses:protocolVersion>1.1</ses:protocolVersion>
+ <ses:host>localhost</ses:host>
+ <ses:port>8080</ses:port>
+ <ses:uri>/jsfWeb/initMemberFields/page1.faces</ses:uri>
+ <ses:method>POST</ses:method>
+ <ses:parameters>
+ <ses:parameter>
+ <ses:name>_id0:_id1</ses:name>
+ <ses:value>check fields</ses:value>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0:_link_hidden_</ses:name>
+ <ses:value/>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>_id0_SUBMIT</ses:name>
+ <ses:value>1</ses:value>
+ </ses:parameter>
+ </ses:parameters>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:cookie>
+ </ses:cookies>
+ <ses:headers>
+ <ses:header>
+ <ses:name>accept</ses:name>
+
<ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-charset</ses:name>
+ <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-encoding</ses:name>
+ <ses:value>gzip,deflate</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-language</ses:name>
+ <ses:value>en-us,en;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-length</ses:name>
+ <ses:value>60</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-type</ses:name>
+ <ses:value>application/x-www-form-urlencoded</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+
<ses:value>JSESSIONID=1776E558464A706481F9E143F58C6BFC</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>host</ses:name>
+ <ses:value>localhost:8080</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>keep-alive</ses:name>
+ <ses:value>300</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>referer</ses:name>
+
<ses:value>http://localhost:8080/jsfWeb/initMemberFields/InitMemberFieldsController.jpf</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>user-agent</ses:name>
+ <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+ </ses:header>
+ </ses:headers>
+ </ses:request>
+ <ses:response>
+ <ses:statusCode>200</ses:statusCode>
+ <ses:reason/>
+ <ses:responseBody><html>
+ <head>
+ </head>
+ <body>
+
+ <form id="_id0" name="_id0" method="post"
action="/jsfWeb/initMemberFields/page1.faces"
enctype="application/x-www-form-urlencoded">
+ <input id="_id0:_id1" name="_id0:_id1" type="submit"
value="check fields" onclick="clear__5Fid0();"/>
+ <br/>
+ page flow is of type:
initMemberFields.InitMemberFieldsController
+ <br/>
+ shared flow is of type:
initMemberFields.InitMemberFieldsSharedFlow
+ <br/>
+ <input type="hidden" name="_id0_SUBMIT" value="1"/><input
type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
+<!--
+function clear__5Fid0() {
+ var f = document.forms['_id0'];
+ f.elements['_id0:_link_hidden_'].value=null;
+ f.target='';
+}
+clear__5Fid0();
+//-->
+</script></form>
+
+ </body>
+</html></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ </ses:tests>
+ <ses:endDate>13 Feb 2005, 01:29:37.875 PM MST</ses:endDate>
+ <ses:testCount>2</ses:testCount>
+</ses:recorderSession>
Propchange:
incubator/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/InitMemberFields.xml
------------------------------------------------------------------------------
svn:eol-style = native