Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSF and the fly likes h:inputHidden Use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "h:inputHidden Use" Watch "h:inputHidden Use" New topic

h:inputHidden Use

Andy Holm
Ranch Hand

Joined: Jul 03, 2008
Posts: 86
How can I use <h:inputHidden> to take a value from one request bean and store it on a different request bean when the JSP page is submitted?
Vishwas Babu

Joined: Nov 12, 2008
Posts: 8
You could set the value of your hidden field on page load using javascript(you can directly access managed bean properties in javascript).

And since you would be binding your component to some value,this set value would get copied to the required bean property on submission
[ November 18, 2008: Message edited by: Vishwas Babu ]
I agree. Here's the link:
subject: h:inputHidden Use
Similar Threads
Can JSF backup bean tell which View is using it?
Dealing with backing bean on request scope ?
not able to retained the value of Drop Down on a page sumbit.
Implement a wizard like application using JSF
Resolving EL