SWF 2.2.1 with Primefaces 2.1

UI Components for JSF
Post Reply
vinayarammohan
Posts: 43
Joined: 09 Feb 2011, 20:41

11 Feb 2011, 18:12

Hi,

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>
The flow is starting fine.
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>
My search results column has

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>
On select the detail page is not being displayed. But the action is triggered.
I am getting an error
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 do not have any other primefaces jars in my path.
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" />
	
Am I missing something?

Thanks
Vinaya
SWF 2.2.1/JSF 2.0/Jboss 6.0/Spring3.0/PrimeFace 3.2

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Feb 2011, 19:31

Try PrimeFaces 2.2 or better 2.2.1-SNAPSHOT

vinayarammohan
Posts: 43
Joined: 09 Feb 2011, 20:41

11 Feb 2011, 20:02

Hi Optimus,

Any jar other than 2.1 for Primefaces does not show the Menu bar and also give errors like

Code: Select all

[Spring MVC Dispatcher Servlet]] Servlet.service() for servlet Spring MVC Dispatcher Servlet threw exception: java.io.FileNotFoundException: /WEB-INF/javax.faces.resource/wijmo/wijmo.xhtml Not Found in ExternalContext as a Resource

[Spring MVC Dispatcher Servlet]] Servlet.service() for servlet Spring MVC Dispatcher Servlet threw exception: java.io.FileNotFoundException: /WEB-INF/javax.faces.resource/jquery/jquery.xhtml Not Found in ExternalContext as a Resource
I posted these errors in another thread, still waiting for a solution.

Thanks
Vinaya
SWF 2.2.1/JSF 2.0/Jboss 6.0/Spring3.0/PrimeFace 3.2

vinayarammohan
Posts: 43
Joined: 09 Feb 2011, 20:41

14 Feb 2011, 22:22

Hi,

I was not able to get the PF 2.2 to show me the menus.
But I figured out that having ajax="flase" for the commandlink worked.

Thanks
Vinaya
SWF 2.2.1/JSF 2.0/Jboss 6.0/Spring3.0/PrimeFace 3.2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: arsen325 and 28 guests