This repository has been archived by the owner on Apr 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60796e9
commit d561251
Showing
14 changed files
with
535 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.springframework.webflow.issues</groupId> | ||
<artifactId>SWF-1468</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<name>Spring Web Flow and JSF Issue Reproduction Project</name> | ||
<packaging>war</packaging> | ||
|
||
<properties> | ||
<java-version>1.6</java-version> | ||
<org.springwebflow-version>2.3.1.BUILD-SNAPSHOT</org.springwebflow-version> | ||
<org.springframework-version>3.1.1.RELEASE</org.springframework-version> | ||
<org.springsecurity-version>3.0.7.RELEASE</org.springsecurity-version> | ||
<jsf-version>2.1.7</jsf-version> | ||
<org.slf4j-version>1.6.1</org.slf4j-version> | ||
</properties> | ||
|
||
<dependencies> | ||
<!-- Spring Framework --> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-context</artifactId> | ||
<version>${org.springframework-version}</version> | ||
<exclusions> | ||
<!-- Exclude Commons Logging in favor of SLF4j --> | ||
<exclusion> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-webmvc</artifactId> | ||
<version>${org.springframework-version}</version> | ||
</dependency> | ||
|
||
<!-- Spring Web Flow --> | ||
<dependency> | ||
<groupId>org.springframework.webflow</groupId> | ||
<artifactId>spring-faces</artifactId> | ||
<version>${org.springwebflow-version}</version> | ||
</dependency> | ||
|
||
<!-- JSF --> | ||
<dependency> | ||
<groupId>com.sun.faces</groupId> | ||
<artifactId>jsf-api</artifactId> | ||
<version>${jsf-version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.sun.faces</groupId> | ||
<artifactId>jsf-impl</artifactId> | ||
<version>${jsf-version}</version> | ||
</dependency> | ||
|
||
<!-- Spring Security | ||
<dependency> | ||
<groupId>org.springframework.security</groupId> | ||
<artifactId>spring-security-web</artifactId> | ||
<version>${org.springsecurity-version}</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.security</groupId> | ||
<artifactId>spring-security-taglibs</artifactId> | ||
<version>${org.springsecurity-version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.security</groupId> | ||
<artifactId>spring-security-config</artifactId> | ||
<version>${org.springsecurity-version}</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
--> | ||
|
||
<!-- Logging --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>${org.slf4j-version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>jcl-over-slf4j</artifactId> | ||
<version>${org.slf4j-version}</version> | ||
<scope>runtime</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-log4j12</artifactId> | ||
<version>${org.slf4j-version}</version> | ||
<scope>runtime</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>log4j</groupId> | ||
<artifactId>log4j</artifactId> | ||
<version>1.2.16</version> | ||
<scope>runtime</scope> | ||
</dependency> | ||
|
||
<!-- Servlet API, JSP API, JSTL --> | ||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>servlet-api</artifactId> | ||
<version>2.5</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.servlet.jsp</groupId> | ||
<artifactId>jsp-api</artifactId> | ||
<version>2.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- Bean Validation with the Hibernate Validator implementation --> | ||
<dependency> | ||
<groupId>javax.validation</groupId> | ||
<artifactId>validation-api</artifactId> | ||
<version>1.0.0.GA</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.hibernate</groupId> | ||
<artifactId>hibernate-validator</artifactId> | ||
<version>4.1.0.Final</version> | ||
</dependency> | ||
|
||
<!-- JAXB for Hibernate Validator when running on Java 5 | ||
<dependency> | ||
<groupId>javax.xml.bind</groupId> | ||
<artifactId>jaxb-api</artifactId> | ||
<version>2.1</version> | ||
</dependency> | ||
--> | ||
|
||
<!-- JUnit --> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.8</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<repositories> | ||
|
||
<repository> | ||
<id>spring-related-snapshot-releases</id> | ||
<name>Latest Spring Snapshot Repository</name> | ||
<url>http://maven.springframework.org/snapshot</url> | ||
<releases><enabled>false</enabled></releases> | ||
<snapshots><enabled>true</enabled></snapshots> | ||
</repository> | ||
|
||
</repositories> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>${java-version}</source> | ||
<target>${java-version}</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>install</id> | ||
<phase>install</phase> | ||
<goals> | ||
<goal>sources</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<includes> | ||
<include>**/*Tests.java</include> | ||
</includes> | ||
<excludes> | ||
<exclude>**/*Abstract*.java</exclude> | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-eclipse-plugin</artifactId> | ||
<version>2.8</version> | ||
<configuration> | ||
<downloadSources>true</downloadSources> | ||
<downloadJavadocs>false</downloadJavadocs> | ||
<wtpversion>2.0</wtpversion> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
log4j.rootCategory=INFO, stdout | ||
|
||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n | ||
|
||
log4j.category.org.springframework.binding=DEBUG | ||
log4j.category.org.springframework.web=DEBUG | ||
log4j.category.org.springframework.webflow=DEBUG | ||
log4j.category.org.springframework.js=DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | ||
version="2.0"> | ||
|
||
</faces-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:ui="http://java.sun.com/jsf/facelets"> | ||
<f:view contentType="text/html"> | ||
<h:head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>Spring Web Flow and JSF Issue Project</title> | ||
</h:head> | ||
<body> | ||
<ui:insert name="content" /> | ||
</body> | ||
</f:view> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<flow xmlns="http://www.springframework.org/schema/webflow" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd"> | ||
|
||
<view-state id="view"> | ||
<transition on="continue" to="done" /> | ||
</view-state> | ||
|
||
<end-state id="done" view="externalRedirect:contextRelative:/" /> | ||
|
||
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<ui:composition xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:ui="http://java.sun.com/jsf/facelets" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:on="http://java.sun.com/jsf/composite/onzin" | ||
template="/WEB-INF/layouts/standard.xhtml"> | ||
<ui:define name="content"> | ||
<div> | ||
<h1>My Page</h1> | ||
<h:form> | ||
<p>Line before onzintag</p> | ||
<p><on:onzintag/></p> | ||
<p>Line after onzintag</p> | ||
<h:commandButton id="continue" value="End Flow" action="continue" /> | ||
</h:form> | ||
</div> | ||
</ui:define> | ||
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> | ||
|
||
<!-- Root Context: defines shared resources visible to all other web components --> | ||
|
||
</beans> |
48 changes: 48 additions & 0 deletions
48
SWF-1468/src/main/webapp/WEB-INF/spring/servlet-context.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | ||
xmlns:faces="http://www.springframework.org/schema/faces" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd | ||
http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.2.xsd"> | ||
|
||
<context:component-scan base-package="org.springframework.webflow.issues" /> | ||
|
||
<faces:resources /> | ||
|
||
<bean class="org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter"/> | ||
|
||
<!-- Maps request paths to flows in the flowRegistry --> | ||
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"> | ||
<property name="order" value="1" /> | ||
<property name="flowRegistry" ref="flowRegistry" /> | ||
<property name="defaultHandler"> | ||
<!-- If no flow match, map path to a view to render; e.g. the | ||
"/intro" path would map to the view named "intro" | ||
--> | ||
<bean class="org.springframework.web.servlet.mvc.UrlFilenameViewController" /> | ||
</property> | ||
</bean> | ||
|
||
<!-- Maps logical view names to Facelet templates in /WEB-INF (e.g. 'search' | ||
to '/WEB-INF/search.xhtml' --> | ||
<bean id="faceletsViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"> | ||
<property name="viewClass" value="org.springframework.faces.mvc.JsfView" /> | ||
<property name="prefix" value="/WEB-INF/views/" /> | ||
<property name="suffix" value=".xhtml" /> | ||
</bean> | ||
|
||
<!-- Dispatches requests mapped to flows to FlowHandler implementations --> | ||
<bean class="org.springframework.faces.webflow.JsfFlowHandlerAdapter"> | ||
<property name="flowExecutor" ref="flowExecutor" /> | ||
</bean> | ||
|
||
<!-- Dispatches requests mapped to org.springframework.web.servlet.mvc.Controller | ||
implementations --> | ||
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" /> | ||
|
||
<!-- Import Spring Web Flow specific configuration --> | ||
<import resource="webflow.xml" /> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:webflow="http://www.springframework.org/schema/webflow-config" | ||
xmlns:faces="http://www.springframework.org/schema/faces" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | ||
http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd | ||
http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.2.xsd"> | ||
|
||
<!-- The central entry point into the Spring Web Flow system --> | ||
<webflow:flow-executor id="flowExecutor"> | ||
<webflow:flow-execution-listeners> | ||
<webflow:listener ref="facesContextListener"/> | ||
</webflow:flow-execution-listeners> | ||
</webflow:flow-executor> | ||
|
||
<!-- The registry with flow definitions --> | ||
<webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices" base-path="/WEB-INF"> | ||
<webflow:flow-location-pattern value="/**/*flow.xml" /> | ||
</webflow:flow-registry> | ||
|
||
<!-- Enable the Spring Web Flow JSF integration --> | ||
<faces:flow-builder-services id="facesFlowBuilderServices" development="true" /> | ||
|
||
<!-- Install a listener that creates and releases the FacesContext for each request. --> | ||
<bean id="facesContextListener" class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener"/> | ||
|
||
<!-- | ||
Uncomment to install a listener to apply Spring Security authorities. | ||
Also remember to add register it in <webflow:flow-executor> element above. | ||
<bean id="securityFlowExecutionListener" class="org.springframework.webflow.security.SecurityFlowExecutionListener" /> | ||
--> | ||
|
||
</beans> |
Oops, something went wrong.