This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:inputHidden Use
 
Similar Threads
not able to retained the value of Drop Down on a page sumbit.
Resolving EL
Can JSF backup bean tell which View is using it?
Dealing with backing bean on request scope ?
Implement a wizard like application using JSF