This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Javascript added hidden inputs in JSF forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Javascript added hidden inputs in JSF forms " Watch "Javascript added hidden inputs in JSF forms " New topic
Author

Javascript added hidden inputs in JSF forms

Ant Niemela
Greenhorn

Joined: Jan 07, 2010
Posts: 1
We have a JSF form which contains an e-mail recipient fieldset. To this fieldset the user can add recipients using a list of users done with jQuery and SimpleModal. The list contains the recipients and upon clicking the name of the recipient, the name is added using javascript to the fieldset along with a hidden input containing the recipient ID etc.

We can't figure out how to get the values of the hidden input fields when the form is POSTed. The fieldset is generated via JSF but the hidden input fields aren't, as we cannot know how many recipients will be added.

Any help regarding this is greatly appreciated!
 
Consider Paul's rocket mass heater.
 
subject: Javascript added hidden inputs in JSF forms
 
Similar Threads
Struts with Javascript problem
Pass some checkbox values from one JSP to another
Sessions
Creating a masked popup in JavaScript
do i have to use session here ?