I am starting a flow on the MenuBar click
Code: Select all
<p:menubar effect="NONE" >
<p:submenu label="Search" >
<p:menuitem value="Stock" url="stock" />
<p:menuitem value="Supply" url="supply"/>
</p:submenu>
</p:menubar>
My flow.xml is as follows
Code: Select all
<?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"
parent="menunavigation">
<var name="stockItemsVwHandler" class="stockitemsvw.StockItemsVwHandler" />
<view-state id="searchStock">
<transition on="searchRecords">
<evaluate expression="stockItemsVwHandler.searchRecords(stockItemsService)" result="flowScope.stockItems" result-type="dataModel"/>
</transition>
<transition on=" " to="stockDetails" >
<set name="flowScope.stockSelected" value="stockItems.selectedRow" />
</transition>
</view-state>
<view-state id="stockDetails" >
<var name="stockItemsDetailBean" class="com.converge.trade.view.bean.stock.stockitemsvw.StockItemsDetailBean" />
<transition on="back" to="searchStock">
</transition>
</view-state>
</flow>
Code: Select all
<p:column>
<f:facet name="header">
<h:outputText value="MPN" />
</f:facet>
<p:commandLink action="select" value="#{stock.part}" styleClass="highLightLink"/>
</p:column>
I am getting an error
I do not have any other primefaces jars in my path.10:54:10,230 INFO [org.primefaces.application.PrimeFacesPhaseListener] Warning: RequestContext is already null before releasing. This means you have more than one PrimeFaces jar in your classpath.
I have not included any PrimeRenderFragmentsListener in my webflow-config.xml
I have my webflow-config.xml as follows
Code: Select all
<webflow:flow-executor id="flowExecutor" >
<webflow:flow-execution-listeners>
<webflow:listener ref="facesContextListener" />
</webflow:flow-execution-listeners>
</webflow:flow-executor>
<bean id="facesContextListener" class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener"/>
<!-- The registry of executable flow definitions -->
<webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices">
<webflow:flow-location path="/WEB-INF/flows/main/main.xml" />
<webflow:flow-location path="/WEB-INF/flows/menuNavigation/menunavigation.xml" />
<webflow:flow-location path="/WEB-INF/flows/stock/stock.xml" />
<webflow:flow-location path="/WEB-INF/flows/supply/supply.xml" />
</webflow:flow-registry>
<!-- Configures the Spring Web Flow JSF integration -->
<faces:flow-builder-services id="facesFlowBuilderServices" />
Thanks
Vinaya