Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add richfaces and primefaces project templates

  • Loading branch information...
commit 60796e99e2e8817af6fd4f01ac271eb4fcdcb3bc 1 parent a3a4e93
authored February 29, 2012

Showing 54 changed files with 1,166 additions and 267 deletions. Show diff stats Hide diff stats

  1. 10  README.markdown
  2. 218  SWF-0000-jsf/pom.xml
  3. 0  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/resources/log4j.properties
  4. 0  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/webapp/WEB-INF/faces-config.xml
  5. 2  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/webapp/WEB-INF/layouts/standard.xhtml
  6. 9  ...n/webapp/WEB-INF/phonebook/phonebook-flow.xml → SWF-0000-jsf/src/main/webapp/WEB-INF/myflow/myflow.xml
  7. 11  ...in/webapp/WEB-INF/phonebook/showNumbers.xhtml → SWF-0000-jsf/src/main/webapp/WEB-INF/myflow/view.xhtml
  8. 0  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/webapp/WEB-INF/spring/root-context.xml
  9. 4  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/webapp/WEB-INF/spring/servlet-context.xml
  10. 4  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/webapp/WEB-INF/spring/webflow.xml
  11. 4  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/webapp/WEB-INF/views/index.xhtml
  12. 0  {SWF-JSF-0000 → SWF-0000-jsf}/src/main/webapp/WEB-INF/web.xml
  13. 14  ...onTests.java → SWF-0000-jsf/src/test/java/org/springframework/webflow/issues/MyFlowExecutionTests.java
  14. 0  {SWF-JSF-0000 → SWF-0000-jsf}/src/test/resources/log4j.properties
  15. 8  SWF-0000-primefaces/README.txt
  16. 234  SWF-0000-primefaces/pom.xml
  17. 10  SWF-0000-primefaces/src/main/resources/log4j.properties
  18. 7  SWF-0000-primefaces/src/main/webapp/WEB-INF/faces-config.xml
  19. 15  SWF-0000-primefaces/src/main/webapp/WEB-INF/layouts/standard.xhtml
  20. 13  SWF-0000-primefaces/src/main/webapp/WEB-INF/myflow/myflow.xml
  21. 21  SWF-0000-primefaces/src/main/webapp/WEB-INF/myflow/view.xhtml
  22. 8  SWF-0000-primefaces/src/main/webapp/WEB-INF/spring/root-context.xml
  23. 48  SWF-0000-primefaces/src/main/webapp/WEB-INF/spring/servlet-context.xml
  24. 35  SWF-0000-primefaces/src/main/webapp/WEB-INF/spring/webflow.xml
  25. 15  SWF-0000-primefaces/src/main/webapp/WEB-INF/views/index.xhtml
  26. 78  SWF-0000-primefaces/src/main/webapp/WEB-INF/web.xml
  27. 14  ....java → SWF-0000-primefaces/src/test/java/org/springframework/webflow/issues/MyFlowExecutionTests.java
  28. 10  SWF-0000-primefaces/src/test/resources/log4j.properties
  29. 8  SWF-0000-richfaces/README.txt
  30. 51  {SWF-JSF-0000 → SWF-0000-richfaces}/pom.xml
  31. 10  SWF-0000-richfaces/src/main/resources/log4j.properties
  32. 7  SWF-0000-richfaces/src/main/webapp/WEB-INF/faces-config.xml
  33. 15  SWF-0000-richfaces/src/main/webapp/WEB-INF/layouts/standard.xhtml
  34. 13  SWF-0000-richfaces/src/main/webapp/WEB-INF/myflow/myflow.xml
  35. 22  SWF-0000-richfaces/src/main/webapp/WEB-INF/myflow/view.xhtml
  36. 8  SWF-0000-richfaces/src/main/webapp/WEB-INF/spring/root-context.xml
  37. 58  SWF-0000-richfaces/src/main/webapp/WEB-INF/spring/servlet-context.xml
  38. 35  SWF-0000-richfaces/src/main/webapp/WEB-INF/spring/webflow.xml
  39. 15  SWF-0000-richfaces/src/main/webapp/WEB-INF/views/index.xhtml
  40. 78  SWF-0000-richfaces/src/main/webapp/WEB-INF/web.xml
  41. 47  SWF-0000-richfaces/src/test/java/org/springframework/webflow/issues/MyFlowExecutionTests.java
  42. 10  SWF-0000-richfaces/src/test/resources/log4j.properties
  43. 14  SWF-0000/README.txt
  44. 23  SWF-0000/pom.xml
  45. 2  SWF-0000/src/main/webapp/WEB-INF/{phonebook/phonebook-flow.xml → myflow/myflow.xml}
  46. 8  SWF-0000/src/main/webapp/WEB-INF/{phonebook/showNumbers.jsp → myflow/view.jsp}
  47. 14  SWF-0000/src/main/webapp/WEB-INF/spring/webflow.xml
  48. 4  SWF-0000/src/main/webapp/WEB-INF/views/home.jsp
  49. 47  SWF-0000/src/test/java/org/springframework/webflow/issues/MyFlowExecutionTests.java
  50. 10  SWF-JSF-0000/README.txt
  51. 11  SWF-JSF-0000/src/main/webapp/WEB-INF/layouts/.svn/all-wcprops
  52. 6  SWF-JSF-0000/src/main/webapp/WEB-INF/layouts/.svn/dir-prop-base
  53. 62  SWF-JSF-0000/src/main/webapp/WEB-INF/layouts/.svn/entries
  54. 63  SWF-JSF-0000/src/main/webapp/WEB-INF/layouts/.svn/text-base/standard.xhtml.svn-base
10  README.markdown
Source Rendered
@@ -38,7 +38,7 @@ For the purpose of these instructions, we'll assume your new JIRA issue ID is "S
38 38
 
39 39
 1\. In your local clone of this repository, create a copy of the appopriate template sub-directory. Their names start with `SWF-0000`.
40 40
 
41  
-For Spring Web Flow (non-JSF) issues:
  41
+For example:
42 42
 
43 43
 ```bash
44 44
 $ cd spring-webflow-issues
@@ -46,13 +46,7 @@ $ ./create-repro-project.sh SWF-0000/ SPR-1502
46 46
 $ cd SPR-1502
47 47
 ```
48 48
 
49  
-For Spring Web Flow with JSF 2 issues:
50  
-
51  
-```bash
52  
-$ cd spring-webflow-issues
53  
-$ ./create-repro-project.sh SWF-JSF-0000/ SPR-1502
54  
-$ cd SPR-1502
55  
-```
  49
+Also available are `SWF-0000-primefaces`, `SWF-0000-richfaces`, and `SWF-0000-jsf`.
56 50
 
57 51
 2\. Review the list of dependencies and version numbers and modify the pom.xml as necessary.
58 52
 
218  SWF-0000-jsf/pom.xml
... ...
@@ -0,0 +1,218 @@
  1
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3
+	<modelVersion>4.0.0</modelVersion>
  4
+	<groupId>org.springframework.webflow.issues</groupId>
  5
+	<artifactId>SWF-0000-jsf</artifactId>
  6
+	<version>1.0-SNAPSHOT</version>
  7
+	<name>Spring Web Flow and JSF Issue Reproduction Project</name>
  8
+	<packaging>war</packaging>
  9
+
  10
+	<properties>
  11
+		<java-version>1.6</java-version>
  12
+		<org.springwebflow-version>2.3.1.BUILD-SNAPSHOT</org.springwebflow-version>
  13
+		<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
  14
+		<org.springsecurity-version>3.0.7.RELEASE</org.springsecurity-version>
  15
+		<jsf-version>2.1.7</jsf-version>
  16
+		<org.slf4j-version>1.6.1</org.slf4j-version>
  17
+	</properties>
  18
+
  19
+	<dependencies>
  20
+		<!-- Spring Framework -->
  21
+		<dependency>
  22
+			<groupId>org.springframework</groupId>
  23
+			<artifactId>spring-context</artifactId>
  24
+			<version>${org.springframework-version}</version>
  25
+			<exclusions>
  26
+				<!-- Exclude Commons Logging in favor of SLF4j -->
  27
+				<exclusion>
  28
+					<groupId>commons-logging</groupId>
  29
+					<artifactId>commons-logging</artifactId>
  30
+				</exclusion>
  31
+			</exclusions>
  32
+		</dependency>
  33
+		<dependency>
  34
+			<groupId>org.springframework</groupId>
  35
+			<artifactId>spring-webmvc</artifactId>
  36
+			<version>${org.springframework-version}</version>
  37
+		</dependency>
  38
+
  39
+		<!-- Spring Web Flow -->
  40
+		<dependency>
  41
+			<groupId>org.springframework.webflow</groupId>
  42
+			<artifactId>spring-faces</artifactId>
  43
+			<version>${org.springwebflow-version}</version>
  44
+		</dependency>
  45
+
  46
+		<!-- JSF -->
  47
+		<dependency>
  48
+			<groupId>com.sun.faces</groupId>
  49
+			<artifactId>jsf-api</artifactId>
  50
+			<version>${jsf-version}</version>
  51
+		</dependency>
  52
+		<dependency>
  53
+			<groupId>com.sun.faces</groupId>
  54
+			<artifactId>jsf-impl</artifactId>
  55
+			<version>${jsf-version}</version>
  56
+		</dependency>
  57
+
  58
+		<!-- Spring Security
  59
+		<dependency>
  60
+			<groupId>org.springframework.security</groupId>
  61
+			<artifactId>spring-security-web</artifactId>
  62
+			<version>${org.springsecurity-version}</version>
  63
+			<exclusions>
  64
+				<exclusion>
  65
+					<groupId>commons-logging</groupId>
  66
+					<artifactId>commons-logging</artifactId>
  67
+				 </exclusion>
  68
+			</exclusions>						
  69
+		</dependency>
  70
+		<dependency>
  71
+			<groupId>org.springframework.security</groupId>
  72
+			<artifactId>spring-security-taglibs</artifactId>
  73
+			<version>${org.springsecurity-version}</version>
  74
+		</dependency>
  75
+		<dependency>
  76
+			<groupId>org.springframework.security</groupId>
  77
+			<artifactId>spring-security-config</artifactId>
  78
+			<version>${org.springsecurity-version}</version>
  79
+			<exclusions>
  80
+				<exclusion>
  81
+					<groupId>commons-logging</groupId>
  82
+					<artifactId>commons-logging</artifactId>
  83
+				 </exclusion>
  84
+			</exclusions>						
  85
+				</dependency>	
  86
+				-->
  87
+
  88
+		<!-- Logging -->
  89
+		<dependency>
  90
+			<groupId>org.slf4j</groupId>
  91
+			<artifactId>slf4j-api</artifactId>
  92
+			<version>${org.slf4j-version}</version>
  93
+		</dependency>
  94
+		<dependency>
  95
+			<groupId>org.slf4j</groupId>
  96
+			<artifactId>jcl-over-slf4j</artifactId>
  97
+			<version>${org.slf4j-version}</version>
  98
+			<scope>runtime</scope>
  99
+		</dependency>
  100
+		<dependency>
  101
+			<groupId>org.slf4j</groupId>
  102
+			<artifactId>slf4j-log4j12</artifactId>
  103
+			<version>${org.slf4j-version}</version>
  104
+			<scope>runtime</scope>
  105
+		</dependency>
  106
+		<dependency>
  107
+			<groupId>log4j</groupId>
  108
+			<artifactId>log4j</artifactId>
  109
+			<version>1.2.16</version>
  110
+			<scope>runtime</scope>
  111
+		</dependency>
  112
+
  113
+		<!-- Servlet API, JSP API, JSTL -->
  114
+		<dependency>
  115
+			<groupId>javax.servlet</groupId>
  116
+			<artifactId>servlet-api</artifactId>
  117
+			<version>2.5</version>
  118
+			<scope>provided</scope>
  119
+		</dependency>
  120
+
  121
+		<dependency>
  122
+			<groupId>javax.servlet.jsp</groupId>
  123
+			<artifactId>jsp-api</artifactId>
  124
+			<version>2.1</version>
  125
+			<scope>provided</scope>
  126
+		</dependency>
  127
+
  128
+		<!-- Bean Validation with the Hibernate Validator implementation -->
  129
+		<dependency>
  130
+			<groupId>javax.validation</groupId>
  131
+			<artifactId>validation-api</artifactId>
  132
+			<version>1.0.0.GA</version>
  133
+		</dependency>
  134
+
  135
+		<dependency>
  136
+			<groupId>org.hibernate</groupId>
  137
+			<artifactId>hibernate-validator</artifactId>
  138
+			<version>4.1.0.Final</version>
  139
+		</dependency>
  140
+
  141
+		<!-- JAXB for Hibernate Validator when running on Java 5
  142
+		<dependency>
  143
+			<groupId>javax.xml.bind</groupId>
  144
+			<artifactId>jaxb-api</artifactId>
  145
+			<version>2.1</version>
  146
+		</dependency>
  147
+		-->
  148
+
  149
+		<!-- JUnit -->
  150
+		<dependency>
  151
+			<groupId>junit</groupId>
  152
+			<artifactId>junit</artifactId>
  153
+			<version>4.8</version>
  154
+			<scope>test</scope>
  155
+		</dependency>
  156
+
  157
+	</dependencies>
  158
+
  159
+	<repositories>
  160
+
  161
+		<repository>
  162
+			<id>spring-related-snapshot-releases</id>
  163
+			<name>Latest Spring Snapshot Repository</name>
  164
+			<url>http://maven.springframework.org/snapshot</url>
  165
+			<releases><enabled>false</enabled></releases>
  166
+			<snapshots><enabled>true</enabled></snapshots>
  167
+		</repository>
  168
+
  169
+	</repositories>
  170
+
  171
+	<build>
  172
+		<plugins>
  173
+			<plugin>
  174
+				<artifactId>maven-compiler-plugin</artifactId>
  175
+				<configuration>
  176
+					<source>${java-version}</source>
  177
+					<target>${java-version}</target>
  178
+				</configuration>
  179
+			</plugin>
  180
+			<plugin>
  181
+				<groupId>org.apache.maven.plugins</groupId>
  182
+				<artifactId>maven-dependency-plugin</artifactId>
  183
+				<executions>
  184
+					<execution>
  185
+						<id>install</id>
  186
+						<phase>install</phase>
  187
+						<goals>
  188
+							<goal>sources</goal>
  189
+						</goals>
  190
+					</execution>
  191
+				</executions>
  192
+			</plugin>
  193
+			<plugin>
  194
+				<artifactId>maven-surefire-plugin</artifactId>
  195
+				<configuration>
  196
+					<includes>
  197
+						<include>**/*Tests.java</include>
  198
+					</includes>
  199
+					<excludes>
  200
+						<exclude>**/*Abstract*.java</exclude>
  201
+					</excludes>
  202
+				</configuration>
  203
+			</plugin>
  204
+			<plugin>
  205
+				<groupId>org.apache.maven.plugins</groupId>
  206
+				<artifactId>maven-eclipse-plugin</artifactId>
  207
+				<version>2.8</version>
  208
+				<configuration>
  209
+					<downloadSources>true</downloadSources>
  210
+					<downloadJavadocs>false</downloadJavadocs>
  211
+					<wtpversion>2.0</wtpversion>
  212
+				</configuration>
  213
+			</plugin>
  214
+		</plugins>
  215
+	</build>
  216
+	
  217
+</project>
  218
+
0  SWF-JSF-0000/src/main/resources/log4j.properties → SWF-0000-jsf/src/main/resources/log4j.properties
File renamed without changes
0  ...JSF-0000/src/main/webapp/WEB-INF/faces-config.xml → ...0000-jsf/src/main/webapp/WEB-INF/faces-config.xml
File renamed without changes
2  ...00/src/main/webapp/WEB-INF/layouts/standard.xhtml → ...sf/src/main/webapp/WEB-INF/layouts/standard.xhtml
@@ -6,7 +6,7 @@
6 6
 <f:view contentType="text/html">
7 7
   <h:head>
8 8
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
9  
-    <title>SWF-JSF Test App</title>
  9
+    <title>Spring Web Flow and JSF Issue Project</title>
10 10
   </h:head>
11 11
   <body>
12 12
     <ui:insert name="content" />
9  .../main/webapp/WEB-INF/phonebook/phonebook-flow.xml → ...000-jsf/src/main/webapp/WEB-INF/myflow/myflow.xml
@@ -2,13 +2,12 @@
2 2
 <flow xmlns="http://www.springframework.org/schema/webflow"
3 3
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 4
       xsi:schemaLocation="
5  
-		http://www.springframework.org/schema/webflow 
6  
-		http://www.springframework.org/schema/webflow/spring-webflow.xsd">
7  
-
8  
-	<view-state id="showNumbers">
  5
+		http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
  6
+		
  7
+	<view-state id="view">
9 8
 		<transition on="continue" to="done" />
10 9
 	</view-state>
11  
-	
  10
+
12 11
 	<end-state id="done" view="externalRedirect:contextRelative:/" />
13 12
 
14 13
 </flow>
11  ...c/main/webapp/WEB-INF/phonebook/showNumbers.xhtml → ...000-jsf/src/main/webapp/WEB-INF/myflow/view.xhtml
@@ -7,14 +7,11 @@
7 7
   template="/WEB-INF/layouts/standard.xhtml">
8 8
   <ui:define name="content">
9 9
     <div>
10  
-      <h1>Phone Numbers</h1>
11  
-      <hr/>
  10
+      <h1>My Page</h1>
12 11
       <h:form>
13  
-        <p>(917) 455-3605</p>
14  
-        <p>(347) 219-2216</p>
15  
-        <p>
16  
-          <h:commandButton id="continue" value="End Flow" action="continue" />
17  
-        </p>
  12
+        <p>Line 1</p> 
  13
+        <p>Line 2</p> 
  14
+        <h:commandButton id="continue" value="End Flow" action="continue" />
18 15
       </h:form>
19 16
     </div>
20 17
   </ui:define>
0  ...0/src/main/webapp/WEB-INF/spring/root-context.xml → ...f/src/main/webapp/WEB-INF/spring/root-context.xml
File renamed without changes
4  ...rc/main/webapp/WEB-INF/spring/servlet-context.xml → ...rc/main/webapp/WEB-INF/spring/servlet-context.xml
@@ -8,9 +8,11 @@
8 8
            http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">
9 9
 
10 10
 	<context:component-scan base-package="org.springframework.webflow.issues" />
11  
-	
  11
+
12 12
 	<faces:resources />
13 13
 	
  14
+	<bean class="org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter"/>
  15
+
14 16
 	<!-- Maps request paths to flows in the flowRegistry -->
15 17
 	<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
16 18
 		<property name="order" value="1" />
4  ...F-0000/src/main/webapp/WEB-INF/spring/webflow.xml → ...00-jsf/src/main/webapp/WEB-INF/spring/webflow.xml
@@ -17,7 +17,7 @@
17 17
 	
18 18
 	<!-- The registry with flow definitions -->
19 19
 	<webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices" base-path="/WEB-INF">
20  
-		<webflow:flow-location-pattern value="/**/*-flow.xml" />
  20
+		<webflow:flow-location-pattern value="/**/*flow.xml" />
21 21
 	</webflow:flow-registry>
22 22
 	
23 23
 	<!-- Enable the Spring Web Flow JSF integration -->
@@ -32,4 +32,4 @@
32 32
 	<bean id="securityFlowExecutionListener" class="org.springframework.webflow.security.SecurityFlowExecutionListener" />
33 33
 	-->
34 34
 
35  
-</beans>
  35
+</beans>
4  ...SF-0000/src/main/webapp/WEB-INF/views/index.xhtml → ...000-jsf/src/main/webapp/WEB-INF/views/index.xhtml
@@ -7,9 +7,9 @@
7 7
   <ui:define name="content">
8 8
     <div>
9 9
       <h1>Home</h1>
10  
-      <p><em>See the server output for debug information</em></p>  
  10
+      <p><strong>See server log for debug information</strong></p>  
11 11
       <hr />
12  
-      <a href="main/phonebook">Start Flow</a>
  12
+      <a href="main/myflow">Start Flow</a>
13 13
     </div>
14 14
   </ui:define>
15 15
 </ui:composition>
0  SWF-JSF-0000/src/main/webapp/WEB-INF/web.xml → SWF-0000-jsf/src/main/webapp/WEB-INF/web.xml
File renamed without changes
14  ...k/webflow/issues/PhonebookFlowExecutionTests.java → ...ramework/webflow/issues/MyFlowExecutionTests.java
@@ -8,16 +8,18 @@
8 8
 import org.springframework.webflow.test.MockFlowBuilderContext;
9 9
 import org.springframework.webflow.test.execution.AbstractXmlFlowExecutionTests;
10 10
 
11  
-public class PhonebookFlowExecutionTests extends AbstractXmlFlowExecutionTests {
  11
+public class MyFlowExecutionTests extends AbstractXmlFlowExecutionTests {
12 12
 
13 13
 	@Override
14 14
 	protected FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory) {
15  
-		return resourceFactory.createFileResource("src/main/webapp/WEB-INF/phonebook/phonebook-flow.xml");
  15
+		return resourceFactory.createFileResource("src/main/webapp/WEB-INF/myflow/myflow.xml");
16 16
 	}
17 17
 
18 18
 	@Override
19 19
 	protected void configureFlowBuilderContext(MockFlowBuilderContext builderContext) {
20  
-		// register beans -- e.g. builderContext.registerBean("phoneService", phoneService);
  20
+		// Register beans here..
  21
+		// MyService myService = ... ;
  22
+		// builderContext.registerBean("myService", myService);
21 23
 	}
22 24
 
23 25
 	public void testStartFlow() {
@@ -27,12 +29,12 @@ public void testStartFlow() {
27 29
 
28 30
 		startFlow(input, context);
29 31
 
30  
-		assertCurrentStateEquals("showNumbers");
31  
-		assertResponseWrittenEquals("showNumbers", context);
  32
+		assertCurrentStateEquals("view");
  33
+		assertResponseWrittenEquals("view", context);
32 34
 	}
33 35
 
34 36
 	public void testEndFlow() {
35  
-		setCurrentState("showNumbers");
  37
+		setCurrentState("view");
36 38
 
37 39
 		MockExternalContext context = new MockExternalContext();
38 40
 		context.setEventId("continue");
0  SWF-JSF-0000/src/test/resources/log4j.properties → SWF-0000-jsf/src/test/resources/log4j.properties
File renamed without changes
8  SWF-0000-primefaces/README.txt
... ...
@@ -0,0 +1,8 @@
  1
+This is a simple template for creating a project to reproduce 
  2
+an  issue as described in the README.markdown file in the root
  3
+of this repository (and at
  4
+https://github.com/SpringSource/spring-webflow-issues#readme).  
  5
+Please read that document.
  6
+
  7
+A Maven (pom.xml) build script is included for your convenience.
  8
+You may want to customize the dependencies it contains.
234  SWF-0000-primefaces/pom.xml
... ...
@@ -0,0 +1,234 @@
  1
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3
+	<modelVersion>4.0.0</modelVersion>
  4
+	<groupId>org.springframework.webflow.issues</groupId>
  5
+	<artifactId>SWF-0000-primefaces</artifactId>
  6
+	<version>1.0-SNAPSHOT</version>
  7
+	<name>Spring Web Flow and PrimeFaces Issue Reproduction Project</name>
  8
+	<packaging>war</packaging>
  9
+
  10
+	<properties>
  11
+		<java-version>1.6</java-version>
  12
+		<org.springwebflow-version>2.3.1.BUILD-SNAPSHOT</org.springwebflow-version>
  13
+		<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
  14
+		<org.springsecurity-version>3.0.7.RELEASE</org.springsecurity-version>
  15
+		<jsf-version>2.1.7</jsf-version>
  16
+		<primefaces-version>3.1.1</primefaces-version>
  17
+		<org.slf4j-version>1.6.1</org.slf4j-version>
  18
+	</properties>
  19
+
  20
+	<dependencies>
  21
+		<!-- Spring Framework -->
  22
+		<dependency>
  23
+			<groupId>org.springframework</groupId>
  24
+			<artifactId>spring-context</artifactId>
  25
+			<version>${org.springframework-version}</version>
  26
+			<exclusions>
  27
+				<!-- Exclude Commons Logging in favor of SLF4j -->
  28
+				<exclusion>
  29
+					<groupId>commons-logging</groupId>
  30
+					<artifactId>commons-logging</artifactId>
  31
+				</exclusion>
  32
+			</exclusions>
  33
+		</dependency>
  34
+		<dependency>
  35
+			<groupId>org.springframework</groupId>
  36
+			<artifactId>spring-webmvc</artifactId>
  37
+			<version>${org.springframework-version}</version>
  38
+		</dependency>
  39
+
  40
+		<!-- Spring Web Flow -->
  41
+		<dependency>
  42
+			<groupId>org.springframework.webflow</groupId>
  43
+			<artifactId>spring-faces</artifactId>
  44
+			<version>${org.springwebflow-version}</version>
  45
+		</dependency>
  46
+
  47
+		<!-- JSF -->
  48
+		<dependency>
  49
+			<groupId>com.sun.faces</groupId>
  50
+			<artifactId>jsf-api</artifactId>
  51
+			<version>${jsf-version}</version>
  52
+		</dependency>
  53
+		<dependency>
  54
+			<groupId>com.sun.faces</groupId>
  55
+			<artifactId>jsf-impl</artifactId>
  56
+			<version>${jsf-version}</version>
  57
+		</dependency>
  58
+
  59
+		<!-- Primefaces -->
  60
+		<dependency>
  61
+			<groupId>org.primefaces</groupId>
  62
+			<artifactId>primefaces</artifactId>
  63
+			<version>${primefaces-version}</version>
  64
+		</dependency>
  65
+
  66
+
  67
+		<!-- Spring Security
  68
+		<dependency>
  69
+			<groupId>org.springframework.security</groupId>
  70
+			<artifactId>spring-security-web</artifactId>
  71
+			<version>${org.springsecurity-version}</version>
  72
+			<exclusions>
  73
+				<exclusion>
  74
+					<groupId>commons-logging</groupId>
  75
+					<artifactId>commons-logging</artifactId>
  76
+				 </exclusion>
  77
+			</exclusions>						
  78
+		</dependency>
  79
+		<dependency>
  80
+			<groupId>org.springframework.security</groupId>
  81
+			<artifactId>spring-security-taglibs</artifactId>
  82
+			<version>${org.springsecurity-version}</version>
  83
+		</dependency>
  84
+		<dependency>
  85
+			<groupId>org.springframework.security</groupId>
  86
+			<artifactId>spring-security-config</artifactId>
  87
+			<version>${org.springsecurity-version}</version>
  88
+			<exclusions>
  89
+				<exclusion>
  90
+					<groupId>commons-logging</groupId>
  91
+					<artifactId>commons-logging</artifactId>
  92
+				 </exclusion>
  93
+			</exclusions>						
  94
+				</dependency>	
  95
+				-->
  96
+
  97
+		<!-- Logging -->
  98
+		<dependency>
  99
+			<groupId>org.slf4j</groupId>
  100
+			<artifactId>slf4j-api</artifactId>
  101
+			<version>${org.slf4j-version}</version>
  102
+		</dependency>
  103
+		<dependency>
  104
+			<groupId>org.slf4j</groupId>
  105
+			<artifactId>jcl-over-slf4j</artifactId>
  106
+			<version>${org.slf4j-version}</version>
  107
+			<scope>runtime</scope>
  108
+		</dependency>
  109
+		<dependency>
  110
+			<groupId>org.slf4j</groupId>
  111
+			<artifactId>slf4j-log4j12</artifactId>
  112
+			<version>${org.slf4j-version}</version>
  113
+			<scope>runtime</scope>
  114
+		</dependency>
  115
+		<dependency>
  116
+			<groupId>log4j</groupId>
  117
+			<artifactId>log4j</artifactId>
  118
+			<version>1.2.16</version>
  119
+			<scope>runtime</scope>
  120
+		</dependency>
  121
+
  122
+		<!-- Servlet API, JSP API, JSTL -->
  123
+		<dependency>
  124
+			<groupId>javax.servlet</groupId>
  125
+			<artifactId>servlet-api</artifactId>
  126
+			<version>2.5</version>
  127
+			<scope>provided</scope>
  128
+		</dependency>
  129
+
  130
+		<dependency>
  131
+			<groupId>javax.servlet.jsp</groupId>
  132
+			<artifactId>jsp-api</artifactId>
  133
+			<version>2.1</version>
  134
+			<scope>provided</scope>
  135
+		</dependency>
  136
+
  137
+		<!-- Bean Validation with the Hibernate Validator implementation -->
  138
+		<dependency>
  139
+			<groupId>javax.validation</groupId>
  140
+			<artifactId>validation-api</artifactId>
  141
+			<version>1.0.0.GA</version>
  142
+		</dependency>
  143
+
  144
+		<dependency>
  145
+			<groupId>org.hibernate</groupId>
  146
+			<artifactId>hibernate-validator</artifactId>
  147
+			<version>4.1.0.Final</version>
  148
+		</dependency>
  149
+
  150
+		<!-- JAXB for Hibernate Validator when running on Java 5
  151
+		<dependency>
  152
+			<groupId>javax.xml.bind</groupId>
  153
+			<artifactId>jaxb-api</artifactId>
  154
+			<version>2.1</version>
  155
+		</dependency>
  156
+		-->
  157
+
  158
+		<!-- JUnit -->
  159
+		<dependency>
  160
+			<groupId>junit</groupId>
  161
+			<artifactId>junit</artifactId>
  162
+			<version>4.8</version>
  163
+			<scope>test</scope>
  164
+		</dependency>
  165
+
  166
+	</dependencies>
  167
+
  168
+	<repositories>
  169
+
  170
+		<repository>
  171
+			<id>spring-related-snapshot-releases</id>
  172
+			<name>Latest Spring Snapshot Repository</name>
  173
+			<url>http://maven.springframework.org/snapshot</url>
  174
+			<releases><enabled>false</enabled></releases>
  175
+			<snapshots><enabled>true</enabled></snapshots>
  176
+		</repository>
  177
+		
  178
+		<repository>
  179
+			<id>primefaces-releases</id>
  180
+			<name>Prime Technology Repository</name>
  181
+			<url>http://repository.primefaces.org</url>
  182
+			<layout>default</layout>
  183
+		</repository>
  184
+
  185
+	</repositories>
  186
+
  187
+	<build>
  188
+		<plugins>
  189
+			<plugin>
  190
+				<artifactId>maven-compiler-plugin</artifactId>
  191
+				<configuration>
  192
+					<source>${java-version}</source>
  193
+					<target>${java-version}</target>
  194
+				</configuration>
  195
+			</plugin>
  196
+			<plugin>
  197
+				<groupId>org.apache.maven.plugins</groupId>
  198
+				<artifactId>maven-dependency-plugin</artifactId>
  199
+				<executions>
  200
+					<execution>
  201
+						<id>install</id>
  202
+						<phase>install</phase>
  203
+						<goals>
  204
+							<goal>sources</goal>
  205
+						</goals>
  206
+					</execution>
  207
+				</executions>
  208
+			</plugin>
  209
+			<plugin>
  210
+				<artifactId>maven-surefire-plugin</artifactId>
  211
+				<configuration>
  212
+					<includes>
  213
+						<include>**/*Tests.java</include>
  214
+					</includes>
  215
+					<excludes>
  216
+						<exclude>**/*Abstract*.java</exclude>
  217
+					</excludes>
  218
+				</configuration>
  219
+			</plugin>
  220
+			<plugin>
  221
+				<groupId>org.apache.maven.plugins</groupId>
  222
+				<artifactId>maven-eclipse-plugin</artifactId>
  223
+				<version>2.8</version>
  224
+				<configuration>
  225
+					<downloadSources>true</downloadSources>
  226
+					<downloadJavadocs>false</downloadJavadocs>
  227
+					<wtpversion>2.0</wtpversion>
  228
+				</configuration>
  229
+			</plugin>
  230
+		</plugins>
  231
+	</build>
  232
+	
  233
+</project>
  234
+
10  SWF-0000-primefaces/src/main/resources/log4j.properties
... ...
@@ -0,0 +1,10 @@
  1
+log4j.rootCategory=INFO, stdout
  2
+
  3
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  4
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  5
+log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
  6
+
  7
+log4j.category.org.springframework.binding=DEBUG
  8
+log4j.category.org.springframework.web=DEBUG
  9
+log4j.category.org.springframework.webflow=DEBUG
  10
+log4j.category.org.springframework.js=DEBUG
7  SWF-0000-primefaces/src/main/webapp/WEB-INF/faces-config.xml
... ...
@@ -0,0 +1,7 @@
  1
+<?xml version='1.0' encoding='UTF-8'?>
  2
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
  3
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
  5
+        version="2.0">
  6
+
  7
+</faces-config>
15  SWF-0000-primefaces/src/main/webapp/WEB-INF/layouts/standard.xhtml
... ...
@@ -0,0 +1,15 @@
  1
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2
+<html xmlns="http://www.w3.org/1999/xhtml"
  3
+  xmlns:f="http://java.sun.com/jsf/core"
  4
+  xmlns:h="http://java.sun.com/jsf/html"
  5
+  xmlns:ui="http://java.sun.com/jsf/facelets">
  6
+<f:view contentType="text/html">
  7
+  <h:head>
  8
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9
+    <title>Spring Web Flow and PrimeFaces Issue Project</title>
  10
+  </h:head>
  11
+  <body>
  12
+    <ui:insert name="content" />
  13
+  </body>
  14
+</f:view>
  15
+</html>
13  SWF-0000-primefaces/src/main/webapp/WEB-INF/myflow/myflow.xml
... ...
@@ -0,0 +1,13 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<flow xmlns="http://www.springframework.org/schema/webflow"
  3
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4
+      xsi:schemaLocation="
  5
+		http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
  6
+		
  7
+	<view-state id="view">
  8
+		<transition on="continue" to="done" />
  9
+	</view-state>
  10
+
  11
+	<end-state id="done" view="externalRedirect:contextRelative:/" />
  12
+
  13
+</flow>
21  SWF-0000-primefaces/src/main/webapp/WEB-INF/myflow/view.xhtml
... ...
@@ -0,0 +1,21 @@
  1
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  2
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  4
+  xmlns:ui="http://java.sun.com/jsf/facelets"
  5
+  xmlns:h="http://java.sun.com/jsf/html" 
  6
+  xmlns:f="http://java.sun.com/jsf/core"
  7
+  xmlns:p="http://primefaces.org/ui"
  8
+  template="/WEB-INF/layouts/standard.xhtml">
  9
+  <ui:define name="content">
  10
+    <div>
  11
+      <h1>My Page</h1>
  12
+      <h:form>
  13
+        <p:panel header="Panel with text" style="width:400px;">
  14
+          <p>Line 1</p> 
  15
+          <p>Line 2</p> 
  16
+        </p:panel>
  17
+        <h:commandButton id="continue" value="End Flow" action="continue" />
  18
+      </h:form>
  19
+    </div>
  20
+  </ui:define>
  21
+</ui:composition>
8  SWF-0000-primefaces/src/main/webapp/WEB-INF/spring/root-context.xml
... ...
@@ -0,0 +1,8 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<beans xmlns="http://www.springframework.org/schema/beans"
  3
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4
+	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
  5
+	
  6
+	<!-- Root Context: defines shared resources visible to all other web components -->
  7
+
  8
+</beans>
48  SWF-0000-primefaces/src/main/webapp/WEB-INF/spring/servlet-context.xml
... ...
@@ -0,0 +1,48 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<beans xmlns="http://www.springframework.org/schema/beans"
  3
+		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  4
+		xmlns:faces="http://www.springframework.org/schema/faces"
  5
+		xsi:schemaLocation="
  6
+           http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  7
+           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
  8
+           http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">
  9
+
  10
+	<context:component-scan base-package="org.springframework.webflow.issues" />
  11
+
  12
+	<faces:resources />
  13
+	
  14
+	<bean class="org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter"/>
  15
+
  16
+	<!-- Maps request paths to flows in the flowRegistry -->
  17
+	<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
  18
+		<property name="order" value="1" />
  19
+		<property name="flowRegistry" ref="flowRegistry" />
  20
+		<property name="defaultHandler">
  21
+			<!-- If no flow match, map path to a view to render; e.g. the 
  22
+				 "/intro" path would map to the view named "intro" 
  23
+				 -->
  24
+			<bean class="org.springframework.web.servlet.mvc.UrlFilenameViewController" />
  25
+		</property>
  26
+	</bean>
  27
+	
  28
+	<!-- Maps logical view names to Facelet templates in /WEB-INF (e.g. 'search' 
  29
+					to '/WEB-INF/search.xhtml' -->
  30
+	<bean id="faceletsViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
  31
+		<property name="viewClass" value="org.springframework.faces.mvc.JsfView" />
  32
+		<property name="prefix" value="/WEB-INF/views/" />
  33
+		<property name="suffix" value=".xhtml" />
  34
+	</bean>
  35
+	
  36
+	<!-- Dispatches requests mapped to flows to FlowHandler implementations -->
  37
+	<bean class="org.springframework.faces.webflow.JsfFlowHandlerAdapter">
  38
+		<property name="flowExecutor" ref="flowExecutor" />
  39
+	</bean>
  40
+	
  41
+	<!-- Dispatches requests mapped to org.springframework.web.servlet.mvc.Controller 
  42
+					implementations -->
  43
+	<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" />
  44
+	
  45
+	<!-- Import Spring Web Flow specific configuration -->
  46
+	<import resource="webflow.xml" />
  47
+
  48
+</beans>
35  SWF-0000-primefaces/src/main/webapp/WEB-INF/spring/webflow.xml
... ...
@@ -0,0 +1,35 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<beans xmlns="http://www.springframework.org/schema/beans"
  3
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4
+       xmlns:webflow="http://www.springframework.org/schema/webflow-config"
  5
+       xmlns:faces="http://www.springframework.org/schema/faces"
  6
+       xsi:schemaLocation="
  7
+           http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  8
+           http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd
  9
+           http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">
  10
+
  11
+	<!-- The central entry point into the Spring Web Flow system -->
  12
+	<webflow:flow-executor id="flowExecutor">
  13
+		<webflow:flow-execution-listeners>
  14
+			<webflow:listener ref="facesContextListener"/>
  15
+		</webflow:flow-execution-listeners>
  16
+	</webflow:flow-executor>
  17
+	
  18
+	<!-- The registry with flow definitions -->
  19
+	<webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices" base-path="/WEB-INF">
  20
+		<webflow:flow-location-pattern value="/**/*flow.xml" />
  21
+	</webflow:flow-registry>
  22
+	
  23
+	<!-- Enable the Spring Web Flow JSF integration -->
  24
+	<faces:flow-builder-services id="facesFlowBuilderServices" development="true" />
  25
+
  26
+	<!-- Install a listener that creates and releases the FacesContext for each request. -->
  27
+	<bean id="facesContextListener" class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener"/>
  28
+	
  29
+	<!-- 
  30
+		Uncomment to install a listener to apply Spring Security authorities.
  31
+		Also remember to add register it in <webflow:flow-executor> element above. 
  32
+	<bean id="securityFlowExecutionListener" class="org.springframework.webflow.security.SecurityFlowExecutionListener" />
  33
+	-->
  34
+
  35
+</beans>
15  SWF-0000-primefaces/src/main/webapp/WEB-INF/views/index.xhtml
... ...
@@ -0,0 +1,15 @@
  1
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  2
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  4
+  xmlns:ui="http://java.sun.com/jsf/facelets"
  5
+  xmlns:f="http://java.sun.com/jsf/core"
  6
+  template="/WEB-INF/layouts/standard.xhtml">
  7
+  <ui:define name="content">
  8
+    <div>
  9
+      <h1>Home</h1>
  10
+      <p><strong>See server log for debug information</strong></p>  
  11
+      <hr />
  12
+      <a href="main/myflow">Start Flow</a>
  13
+    </div>
  14
+  </ui:define>
  15
+</ui:composition>
78  SWF-0000-primefaces/src/main/webapp/WEB-INF/web.xml
... ...
@@ -0,0 +1,78 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  3
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  5
+
  6
+	<context-param>
  7
+		<param-name>contextConfigLocation</param-name>
  8
+		<param-value>/WEB-INF/spring/root-context.xml</param-value>
  9
+	</context-param>
  10
+
  11
+	<listener>
  12
+		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  13
+	</listener>
  14
+	
  15
+	<!-- Use JSF view templates saved as *.xhtml, for use with Facelets -->
  16
+	<context-param>
  17
+		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  18
+		<param-value>.xhtml</param-value>
  19
+	</context-param>
  20
+	
  21
+	<!-- Enables special Facelets debug output during development -->
  22
+  	<context-param>
  23
+        <param-name>javax.faces.PROJECT_STAGE</param-name>
  24
+   		<param-value>Development</param-value>
  25
+  	</context-param>
  26
+  	
  27
+  	<!-- Causes Facelets to refresh templates during development -->
  28
+  	<context-param>
  29
+  		<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
  30
+  		<param-value>1</param-value>
  31
+  	</context-param>
  32
+  	
  33
+	<!-- Uncomment for Spring Security
  34
+	<filter>
  35
+        <filter-name>springSecurityFilterChain</filter-name>
  36
+        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  37
+    </filter>
  38
+
  39
+    <filter-mapping>
  40
+      <filter-name>springSecurityFilterChain</filter-name>
  41
+      <servlet-name>appServlet</servlet-name>
  42
+    </filter-mapping>
  43
+    -->
  44
+
  45
+  	<!-- Uncomment to declare Spring Security Facelets tag library
  46
+  	<context-param>
  47
+  		<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
  48
+  		<param-value>/WEB-INF/springsecurity.taglib.xml</param-value>
  49
+  	</context-param>
  50
+	-->
  51
+	  	    
  52
+	<servlet>
  53
+		<servlet-name>appServlet</servlet-name>
  54
+		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  55
+		<init-param>
  56
+			<param-name>contextConfigLocation</param-name>
  57
+			<param-value>/WEB-INF/spring/servlet-context.xml</param-value>
  58
+		</init-param>
  59
+		<load-on-startup>2</load-on-startup>
  60
+	</servlet>
  61
+
  62
+	<servlet-mapping>
  63
+		<servlet-name>appServlet</servlet-name>
  64
+		<url-pattern>/main/*</url-pattern>
  65
+	</servlet-mapping>
  66
+
  67
+	<!-- Just here so the JSF implementation can initialize, *not* used at runtime -->
  68
+	<servlet>
  69
+		<servlet-name>Faces Servlet</servlet-name>
  70
+		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  71
+		<load-on-startup>1</load-on-startup>
  72
+	</servlet>
  73
+	
  74
+	<welcome-file-list>
  75
+		<welcome-file>main/index.html</welcome-file>
  76
+	</welcome-file-list>
  77
+
  78
+</web-app>
14  ...k/webflow/issues/PhonebookFlowExecutionTests.java → ...ramework/webflow/issues/MyFlowExecutionTests.java
@@ -8,16 +8,18 @@
8 8
 import org.springframework.webflow.test.MockFlowBuilderContext;
9 9
 import org.springframework.webflow.test.execution.AbstractXmlFlowExecutionTests;
10 10
 
11  
-public class PhonebookFlowExecutionTests extends AbstractXmlFlowExecutionTests {
  11
+public class MyFlowExecutionTests extends AbstractXmlFlowExecutionTests {
12 12
 
13 13
 	@Override
14 14
 	protected FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory) {
15  
-		return resourceFactory.createFileResource("src/main/webapp/WEB-INF/phonebook/phonebook-flow.xml");
  15
+		return resourceFactory.createFileResource("src/main/webapp/WEB-INF/myflow/myflow.xml");
16 16
 	}
17 17
 
18 18
 	@Override
19 19
 	protected void configureFlowBuilderContext(MockFlowBuilderContext builderContext) {
20  
-		// register beans -- e.g. builderContext.registerBean("phoneService", phoneService);
  20
+		// Register beans here..
  21
+		// MyService myService = ... ;
  22
+		// builderContext.registerBean("myService", myService);
21 23
 	}
22 24
 
23 25
 	public void testStartFlow() {
@@ -27,12 +29,12 @@ public void testStartFlow() {
27 29
 
28 30
 		startFlow(input, context);
29 31
 
30  
-		assertCurrentStateEquals("showNumbers");
31  
-		assertResponseWrittenEquals("showNumbers", context);
  32
+		assertCurrentStateEquals("view");
  33
+		assertResponseWrittenEquals("view", context);
32 34
 	}
33 35
 
34 36
 	public void testEndFlow() {
35  
-		setCurrentState("showNumbers");
  37
+		setCurrentState("view");
36 38
 
37 39
 		MockExternalContext context = new MockExternalContext();
38 40
 		context.setEventId("continue");
10  SWF-0000-primefaces/src/test/resources/log4j.properties
... ...
@@ -0,0 +1,10 @@
  1
+log4j.rootCategory=INFO, stdout
  2
+
  3
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  4
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  5
+log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
  6
+
  7
+log4j.category.org.springframework.binding=DEBUG
  8
+log4j.category.org.springframework.web=DEBUG
  9
+log4j.category.org.springframework.webflow=DEBUG
  10
+log4j.category.org.springframework.js=DEBUG
8  SWF-0000-richfaces/README.txt
... ...
@@ -0,0 +1,8 @@
  1
+This is a simple template for creating a project to reproduce 
  2
+an  issue as described in the README.markdown file in the root
  3
+of this repository (and at
  4
+https://github.com/SpringSource/spring-webflow-issues#readme).  
  5
+Please read that document.
  6
+
  7
+A Maven (pom.xml) build script is included for your convenience.
  8
+You may want to customize the dependencies it contains.
51  SWF-JSF-0000/pom.xml → SWF-0000-richfaces/pom.xml
@@ -2,9 +2,9 @@
2 2
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3 3
 	<modelVersion>4.0.0</modelVersion>
4 4
 	<groupId>org.springframework.webflow.issues</groupId>
5  
-	<artifactId>SWF-JSF-0000</artifactId>
  5
+	<artifactId>SWF-0000-richfaces</artifactId>
6 6
 	<version>1.0-SNAPSHOT</version>
7  
-	<name>Spring Web Flow and JSF Issue Reproduction Project</name>
  7
+	<name>Spring Web Flow and RichFaces Issue Reproduction Project</name>
8 8
 	<packaging>war</packaging>
9 9
 
10 10
 	<properties>
@@ -13,7 +13,6 @@
13 13
 		<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
14 14
 		<org.springsecurity-version>3.0.7.RELEASE</org.springsecurity-version>
15 15
 		<jsf-version>2.1.7</jsf-version>
16  
-		<primefaces.version>4.2.0.Final</primefaces.version>
17 16
 		<richfaces.version>4.2.0.Final</richfaces.version>
18 17
 		<org.slf4j-version>1.6.1</org.slf4j-version>
19 18
 	</properties>
@@ -38,7 +37,7 @@
38 37
 			<version>${org.springframework-version}</version>
39 38
 		</dependency>
40 39
 
41  
-        <!-- Spring Web Flow -->
  40
+		<!-- Spring Web Flow -->
42 41
 		<dependency>
43 42
 			<groupId>org.springframework.webflow</groupId>
44 43
 			<artifactId>spring-faces</artifactId>
@@ -56,16 +55,7 @@
56 55
 			<artifactId>jsf-impl</artifactId>
57 56
 			<version>${jsf-version}</version>
58 57
 		</dependency>
59  
-		
60  
-		<!-- PrimeFaces
61  
-		<dependency>
62  
-			<groupId>org.primefaces</groupId>
63  
-			<artifactId>primefaces</artifactId>
64  
-			<version>2.2.1</version>
65  
-		</dependency>
66  
-		-->
67 58
 
68  
-        <!-- RichFaces
69 59
 		<dependency>
70 60
 			<groupId>org.richfaces.ui</groupId>
71 61
 			<artifactId>richfaces-components-ui</artifactId>
@@ -76,9 +66,8 @@
76 66
 			<artifactId>richfaces-core-impl</artifactId>
77 67
 			<version>${richfaces.version}</version>
78 68
 		</dependency>
79  
-		-->
80  
-
81  
-        <!-- Spring Security
  69
+		 
  70
+		<!-- Spring Security
82 71
 		<dependency>
83 72
 			<groupId>org.springframework.security</groupId>
84 73
 			<artifactId>spring-security-web</artifactId>
@@ -105,8 +94,8 @@
105 94
 					<artifactId>commons-logging</artifactId>
106 95
 				 </exclusion>
107 96
 			</exclusions>						
108  
-        </dependency>	
109  
-        -->
  97
+				</dependency>	
  98
+				-->
110 99
 
111 100
 		<!-- Logging -->
112 101
 		<dependency>
@@ -161,16 +150,13 @@
161 150
 			<version>4.1.0.Final</version>
162 151
 		</dependency>
163 152
 
164  
-		<!--
165  
-			JAXB is needed for Hibernate Validator when running on Java 5. 
166  
-			In this environment these dependencies have to be added 
167  
-			(unless xml	configuration is explicitly disabled via Configuration.ignoreXmlConfiguration) 
168  
-			-->
169  
-        <dependency>