I configured a Web-Application (Prototype) to Run JSF with Spring Webflow.
After configuring a whole (and huge) Webapplication to to the same i get an Error. After Debugging i see that the FacesContextFactory is set by a Factory Finder that looks up the class path and uses the first FactoryImpl that is found - in this case the orchestra one.
Alltogether i have four different Implementations in my webapp (myfaces, orchestra, etc...).
Does anyone know a way to let Spring Webflow only use the myfaces implementation?!
I tried to specify it in the in the faces-config.xml, but it didnīt work.
EDIT: Another thing i tried, was to configre spring beans to use a factory, but this didnīt work either...
EDIT2: Here is my webflow Config with Beans. Maybe there is something wrong.
Code:<?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-2.5.xsd http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd http://www.springframework.org/schema/faces 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-execution-listeners> <webflow:listener ref="facesContextListener" /> </webflow:flow-execution-listeners> </webflow:flow-executor> <!-- The registry of executable flow definitions --> <webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices" base-path="classpath:de/myapp/path/to/dir"> <webflow:flow-location path="test-flow.xml" /> </webflow:flow-registry> <!-- Configures the Spring Web Flow JSF integration --> <faces:flow-builder-services id="facesFlowBuilderServices" /> <!--BEANS--> <!--###############################--> <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> <prop key="/**">flowController</prop> </props> </property> <property name="defaultHandler"> <bean class="org.springframework.webflow.context.servlet.WebFlow1FlowUrlHandler"/> </property> </bean> <bean id="flowController" class="org.springframework.webflow.mvc.servlet.FlowController"> <property name="flowExecutor" ref="flowExecutor"/> <property name="flowUrlHandler"> <bean class="org.springframework.webflow.context.servlet.WebFlow1FlowUrlHandler"/> </property> </bean> <bean id="facesContextListener" class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener" /> </beans>


Reply With Quote
