This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

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
Greenhorn

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 ]
 
GeeCON Prague 2014
 
subject: h:inputHidden Use