Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring webflow 2.3 with richfaces

 
Leo hmt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic