Grabbing an HTML value with JSF

Posted by user560785 on Stack Overflow See other posts from Stack Overflow or by user560785
Published on 2011-01-03T03:09:02Z Indexed on 2011/01/03 3:53 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

Hi everyone! I have a javascript that edits a hidden field in my jsf page:

<h:inputHidden id="data"  value="" />

and when I click on "Submit" I would like to get the new value of this HTML field that was modified by the javascript. I've looked into

FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("data");

But that seems only to work if it is passed in as an <f:param/>. Is there a way i can get the value through a bean call?

© Stack Overflow or respective owner

Related posts about java

Related posts about JavaScript