• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:inputHidden Use

 
Andy Holm
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic