Meaningless Drivel is fun!*
The moose likes JSF and the fly likes Spring webflow 2.3 with richfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Spring webflow 2.3 with richfaces" Watch "Spring webflow 2.3 with richfaces" New topic
Author

Spring webflow 2.3 with richfaces

Leo hmt
Greenhorn

Joined: Oct 11, 2011
Posts: 1
Hi guys,
I got a problem for accessing values from my xhtml page from webflow. Let's say i got profile bean which bind to that page. And i got one more input box not relating to that profile bean. I want to retrieve value from that dob input box from my flow. I just want to retrieve that input box value and display in another page. How should i do that? Please help me. I appreciate your help. Thanks. The following are my sample.
Profile.xhtml
<hutputText value="ID: " />
<h:inputText label = "ID" id = "id" value="#{flowScope.profile.id}" required="true" >
<rich:beanValidator />
</h:inputText>
<rich:message for="id"/>
<br />
<hutputText value="Your Name: " />
<h:inputText label = "Name" id = "name" value="#{flowScope.profile.name}" required="true" >
<rich:beanValidator />
</h:inputText>
<rich:message for="name"/>
<br />
<hutputText value="Your NRIC: " />
<h:inputText label = "NRIC" id = "nric" value="#{flowScope.profile.nric}" required="true" >
<rich:beanValidator />
</h:inputText>
<rich:message for="nric"/>
<br />
<hutputText value="Your DOB: " />
<h:inputText label = "DOB" id = "dob" value="#{dob}" required="true" >
<rich:beanValidator />
</h:inputText>
<rich:message for="dob"/>
<br />

flow.xml
<view-state id="addProfile" model = "profile">
<binder>
<binding property = "id"/>
<binding property = "name"/>
<binding property = "nric"/>
</binder>
<transition on = "save" to = "viewProfile">
<evaluate expression = "profileAction.saveProfile(profile)" result = "flowScope.prof"/>
</transition>
<transition on = "cancel" to = "end" history = "discard" bind="false"></transition>
</view-state>


<view-state id = "viewProfile" >
<on-render>
<evaluate expression="profileAction.getProfile(prof.id)"
result="viewScope.prof" />

</on-render>
<transition on="close" to="end" />
</view-state>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring webflow 2.3 with richfaces
 
Similar Threads
disabled issue for inputtext
Spring web flow: Not proceeding from first page to second page
Webflow and model/data binding
Take input from <h:inputText> in rich <modalPanel>
integrate upload file with form