Issue while passing value from dialog to view page

UI Components for JSF
Post Reply
amolpatiletc
Posts: 1
Joined: 13 May 2012, 16:02

13 May 2012, 16:38

Dialog page("list.xhtml)
<h:outputText value="Pojo: " />
<p:selectOneMenu value="rfeLocationListBean.rfeLocation1" effect="fade" itemValue="#{rfeLocation.id}" >

<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItems value="#{rfeLocationListBean.rfeLocation}" var="rfeLocation" itemLabel="#{rfeLocation.description}" itemValue="#{rfeLocation.description}"/>
</p:selectOneMenu>


View page
(complete.xhtml)

<h3>
<h:outputText value=" Title "/>
<h:outputText value="#{rfeLocationListBean.rfeLocation.description}" var="#{rfeLocation.id}" />
<h:outputText value="#{rfeLocation.description}" rendered="#{not empty rfeLocation.description}" var="#{rfeLocation.id}"/>
<br/>


My Spring web Flow configuration


<?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/w ... ow-2.0.xsd"
start-state="start">

<view-state id="start" view="list.xhtml">
<on-entry>
<evaluate expression="rfeController.newRfeListBean()" result="viewScope.rfeListBean"/>
<evaluate expression="rfeController.newRfeTypeBean()" result="viewScope.rfeTypeBean"/>
<evaluate expression="rfeController.newRfeLocationListBean()" result="viewScope.rfeLocationListBean "/>
</on-entry>

<!-- view -->
<!-- <transition on="view" to="show">
<set name="requestScope.id" value="rfeListBean.selectedContact.id"/>
<set name="requestScope.id" value="rfeListBean.selectedContact.id"/>
</transition> -->
<!-- new code for ADD -->

<transition on="next" to="add-step-1">
<!-- <evaluate expression="rfeController.showRfe(flowRequestContext)"/>
<evaluate expression="rfeController.newRfeTypeBean()" result="flowScope.rfeTypeBean"/> -->
<evaluate expression="rfeController.newRfeLocationListBean()" result="flowScope.rfeLocationListBean "/> --->
</transition>
</view-state>

<view-state id="add-step-1" view="complete.xhtml">


<!-- <evaluate expression="rfeController.newRfeTypeBean()" result="flowScope.rfeTypeBean"/>
<evaluate expression="rfeController.newRfeLocationListBean()" result="flowScope.rfeLocationListBean "/> -->


</view-state>
<!-- next Page -->




</flow>

I am able render rfeLocation.description but while clicking next to view page (UI) no values getting from dialog to view page

Anybody can help me to resolve this issue

Thanks in advance

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests