Results 1 to 3 of 3

Thread: <flow:executor ..., <flow:listener ../> in JSF can not work.

  1. #1
    Join Date
    Apr 2006
    Location
    ChengDu,China
    Posts
    15

    Unhappy <flow:executor ..., <flow:listener ../> in JSF can not work.

    Hi,
    I am using SWF + JSF, in the refrence and samples, the solution that to add an executionListener via:
    Code:
    <flow:executor id="flowExecutor" registry-ref="flowDefinitionLocator" repository-type="singlekey">
            <flow:execution-listeners>
                <flow:listener ref="flowViewNavigationExecutionListener" criteria="*"/>
            </flow:execution-listeners>
        </flow:executor>
    I found it couldn't work, the reason is FlowNavigationHandler never use the executor to execute flow. instead, it use FlowExecutionImpl that created by FlowFacesUtils.getExecutionFactory(). and in FlowFacesUtils.getExecutionFactory(), it lookup the FlowExecutionFactory in spring IOC configration via the key of "flowExecutionFactory", and it looks like to composite the repository-type need diffrent way with flow:executor, I don't know how to config my repository type strategy to "singlekey".
    so, if I want to add some execution Listeners, I need to write the down of code in applicaption config:
    Code:
        <bean id="flowExecutionFactory" class="org.springframework.webflow.engine.impl.FlowExecutionImplFactory">
        	<property name="executionListenerLoader" ref="simpleFlowExecutionListenerLoader"></property>
        </bean>
    
    	<bean name="simpleFlowExecutionListenerLoader" class="org.springframework.webflow.execution.factory.StaticFlowExecutionListenerLoader" scope="singleton">
    		<constructor-arg>
    			<list>
    				<ref bean="flowViewNavigationExecutionListener"/>
    			</list>
    		</constructor-arg>
    	</bean>
    but I have no way to composite the repository type strategy .

    who can give me some advice?
    Thanks very much.
    Last edited by langds; Oct 30th, 2006 at 06:44 AM.

  2. #2
    Join Date
    Apr 2006
    Location
    ChengDu,China
    Posts
    15

    Default

    Can any one help me?

  3. #3
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    The JSF integration does not use the flow executor at all, it fits in executor service logic across JSF Phase Listener methods. More information can be found here: http://www.theserverside.com/news/th...hread_id=42799

    You can customize the various services the listeners delegate to, including the repository and the execution factory by deploying beans into your root context with specific bean names. See FlowFacesUtils for those names.

    Keith
    Keith Donald
    Core Spring Development Team

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •