Hallo zusammen,
ich habe meine JSF2-Anwendung um Spring Web Flow 2 entsprechend der Referenz (http://static.springsource.org/spri...ow-reference/pdf/spring-webflow-reference.pdf) erweitert.
Die Startseite lädt. Es gibt keinerlei Fehlermeldungen, aber der Flow wird nicht aufgerufen.
Kann mir jemand weiterhelfen?
Grüße
Anja
web.xml
web-application-config.xml
webmvc-config.xml
webflow-config.xml
services-config.xml
ich habe meine JSF2-Anwendung um Spring Web Flow 2 entsprechend der Referenz (http://static.springsource.org/spri...ow-reference/pdf/spring-webflow-reference.pdf) erweitert.
Die Startseite lädt. Es gibt keinerlei Fehlermeldungen, aber der Flow wird nicht aufgerufen.
Kann mir jemand weiterhelfen?
Grüße
Anja
web.xml
Java:
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/web-application-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<url-pattern>/WEB-INF/sites/*</url-pattern>
</servlet-mapping>
<!-- Use JSF view templates saved as *.xhtml, for use with Facelets -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
web-application-config.xml
Java:
<?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"
xsi:schemaLocation="
[url=http://www.springframework.org/schema/beans]Index of /schema/beans[/url]
[url]http://www.springframework.org/schema/beans/spring-beans-2.5.xsd[/url]
[url=http://www.springframework.org/schema/context]Index of /schema/context[/url]
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<!-- Activates annotation-based bean configuration -->
<context:annotation-config />
<!-- Scans for application @Components to deploy -->
<context:component-scan base-package="de.hallesche.urje.managedbeans" />
<!-- Imports the configurations of the different infrastructure systems
of the application -->
<import resource="/config/webmvc-config.xml" />
<import resource="/config/webflow-config.xml" />
<import resource="/config/services-config.xml" />
</beans>
webmvc-config.xml
Java:
<?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="
[url=http://www.springframework.org/schema/beans]Index of /schema/beans[/url]
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<!-- Maps request URIs to controllers -->
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<!-- <property name="mappings"> <value> /../WEB-INF/flows/*=flowController
</value> </property> -->
<property name="defaultHandler">
<!-- Selects view names to render based on the request URI: e.g. /main
selects "main" -->
<bean class="org.springframework.web.servlet.mvc.UrlFilenameViewController" />
</property>
</bean>
<!-- Handles requests mapped to the Spring Web Flow system -->
<bean id="flowController" class="org.springframework.webflow.mvc.servlet.FlowController">
<property name="flowExecutor" ref="flowExecutor" />
</bean>
<!-- Maps flow view-state view names to JSP templates -->
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/sites/" />
<property name="suffix" value=".jsf" />
</bean>
</beans>
webflow-config.xml
Java:
<?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="
[url=http://www.springframework.org/schema/beans]Index of /schema/beans[/url]
[url]http://www.springframework.org/schema/beans/spring-beans-2.5.xsd[/url]
[url=http://www.springframework.org/schema/webflow-config]Index of /schema/webflow-config[/url]
[url]http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd[/url]
[url=http://www.springframework.org/schema/faces]Index of /schema/faces[/url]
http://www.springframework.org/schema/faces/spring-faces-2.0.xsd">
<!-- Executes flows: the central entry point into the Spring Web Flow system -->
<webflow:flow-executor id="flowExecutor">
</webflow:flow-executor>
<!-- The registry of executable flow definitions -->
<webflow:flow-registry id="flowRegistry"
flow-builder-services="facesFlowBuilderServices">
<webflow:flow-location-pattern value="/WEB-INF/flows/**/*.xml" />
</webflow:flow-registry>
<!-- Configures the Spring Web Flow JSF integration -->
<faces:flow-builder-services id="facesFlowBuilderServices" />
</beans>
services-config.xml
Java:
<?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:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
[url=http://www.springframework.org/schema/beans]Index of /schema/beans[/url]
[url]http://www.springframework.org/schema/beans/spring-beans-2.0.xsd[/url]
[url=http://www.springframework.org/schema/tx]Index of /schema/tx[/url]
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
<bean id="vaBean" class="de.hallesche.urje.managedbeans.VersicherungsantragBean">
</bean>
</beans>