|
|
SWF Transition state not triggered
Hi,
I am new to SWF . I am trying to integrate myfaces 1.2 and swf 2.0.8. I am able to navigate using hyperlink
lt;a hrcf=quot;${flowExecutionucl}amp;_eventId=loginActionquot;gt;Su bmitlt;/agt;
But when I click command button, the transition state not triggered and I remained in the same page. lt;t:commandButton id=quot;btnSubmitquot; immediate=quot;truequot;
action=quot;loginActionquot; forceId=quot;truequot;
value=quot;Sign inquot; style=quot;width:80px;quot;
lt;/t:commandButtongt;
lt;bean class=quot;org..web.servlet.handler.Sim pleuclHandlerMappingquot;gt;
lt;property name=quot;mappingsquot;gt;
lt;valuegt;
/pg/login.do=flowController
lt;/valuegt;
lt;/propertygt;
lt;property name=quot;alwaysUseFullPathquot; value=quot;truequot;/gt;
lt;/beangt;
lt;!-- Enables annotated methods on POJO @Controllers (like CartController) --gt;
lt;bean class=quot;org..web.servlet.mvc.annotat ion.AnnotationMethodHandlerAdapterquot;/gt;
lt;!-- Enables plain Controllers (e.g. FlowController) --gt;
lt;bean class=quot;org..web.servlet.mvc.SimpleC ontrollerHandlerAdapterquot;/gt;
lt;!-- Maps a logical view name to a physical resource --gt;
lt;bean id=quot;viewResolverquot; class=quot;org..web.servlet.view.Intern alResourceViewResolverquot;gt;
lt;property name=quot;prefixquot; value=quot;/WEB-INF/jsp/quot;/gt;
lt;property name=quot;suffixquot; value=quot;.jsfquot;/gt;
lt;/beangt;
lt;bean id=quot;flowControllerquot; class=quot;org..webflow.mvc.servlet.Flo wControllerquot;gt;
lt;property name=quot;flowExecutorquot; ref=quot;flowExecutorquot;/gt;
lt;/beangt;
lt;flow:flow-executor id=quot;flowExecutorquot; flow-registry=quot;flowRegistryquot;/gt;
lt;!-- This creates an XmlFlowRegistryFactory bean --gt;
lt;flow:flow-registry id=quot;flowRegistryquot; flow-builder-services=quot;flowBuilderServicesquot;gt;
lt;flow:flow-location path=quot;/WEB-INF/flows/login.xmlquot;/gt;
lt;/flow:flow-registrygt;
lt;!-- lt;flow:flow-builder-services id=quot;flowBuilderServicesquot; view-factory-creator=quot;viewFactoryCreatorquot;/gt; --gt; lt;!-- Configures the Spring Web Flow JSF integration --gt; lt;faces:flow-builder-services id=quot;flowBuilderServicesquot; view-factory-creator=quot;viewFactoryCreatorquot; development=quot;truequot;/gt;
lt;bean id=quot;viewFactoryCreatorquot; class=quot;org..webflow.mvc.builder.Mvc ViewFactoryCreatorquot;gt;
lt;property name=quot;viewResolversquot;gt;
lt;listgt;
lt;ref bean=quot;viewResolverquot;/gt;
lt;/listgt;
lt;/propertygt;
lt;/beangt;
lt;faces-config xmlns=quot;xml/ns/javaeequot; xmlns:xsi=quot;2001/XMLSchema-instancequot; xsi:schemaLocation=quot;xml/ns/javaee xml/ns/javaee/web-facesconfig_1_2.xsdquot; version=quot;1.2quot;gt; lt;applicationgt; lt;view-handlergt;org..faces.webflow.FlowView Handlerlt;/view-handlergt;
lt;action-listenergt;org..faces.webflow.FlowAct ionListenerlt;/action-listenergt; lt;action-listenergt;org..faces.model.Selection TrackingActionListenerlt;/action-listenergt;
lt;variable-resolvergt;org..faces.webflow.FlowVar iableResolverlt;/variable-resolvergt; lt;variable-resolvergt;org..faces.webflow.SpringB eanWebFlowVariableResolverlt;/variable-resolvergt; lt;variable-resolvergt;org..web.jsf.SpringBeanVar iableResolverlt;/variable-resolvergt;
lt;property-resolvergt;org..faces.webflow.FlowPro pertyResolverlt;/property-resolvergt; lt;/applicationgt; lt;factorygt; lt;application-factorygt;org..faces.webflow.FlowAppl icationFactorylt;/application-factorygt; lt;/factorygt;
lt;lifecyclegt; lt;phase-listenergt;org..faces.support.Request LoggingPhaseListenerlt;/phase-listenergt; lt;/lifecyclegt;lt;/faces-configgt;
lt;view-state id=quot;loginquot; view=quot;pg/loginquot;gt;
lt;transition on=quot;loginActionquot; to=quot;introquot; /gt;
lt;/view-stategt;
lt;view-state id=quot;introquot; view=quot;pg/introquot;/gt;
Could you please help in resolving this issue.
Thanks in advance |
|