Leo hmt

Greenhorn
+ Follow
since Oct 11, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Leo hmt

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>
12 years ago
JSF