• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring webflow 2.3 with richfaces

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
<h:outputText value="ID: " />
<h:inputText label = "ID" id = "id" value="#{flowScope.profile.id}" required="true" >
<rich:beanValidator />
</h:inputText>
<rich:message for="id"/>
<br />
<h:outputText value="Your Name: " />
<h:inputText label = "Name" id = "name" value="#{flowScope.profile.name}" required="true" >
<rich:beanValidator />
</h:inputText>
<rich:message for="name"/>
<br />
<h:outputText value="Your NRIC: " />
<h:inputText label = "NRIC" id = "nric" value="#{flowScope.profile.nric}" required="true" >
<rich:beanValidator />
</h:inputText>
<rich:message for="nric"/>
<br />
<h:outputText 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>
reply
    Bookmark Topic Watch Topic
  • New Topic