This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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 ]
subject: h:inputHidden Use