File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
It's not a secret anymore!