title: How to obtain the value of h:inputHidden element whose value is calculated using jquery javascript
body: <p>My requirement is when the user clicks the submit button, a new value calculated should be stored in the inputHidden field value. I have written function in jQuery to calculate the new value for the inputHidden field, when submit button is clicked. The new value is assigned to the inputHidden field value. But the problem is that while retrieving the value in the backing bean using hidden.getValue(), it returns null value. </p>
  
  <pre><code>    jQuery code:
      function hidden(){
      var valueCalculated = '3';
      $('#hidden').val(valueCalculated);
      alert($('#hidden').val());  //displays 3 when submit button is clicked.
      }
  
     JSF code:
     &lt;h:inputHidden binding="#{bean.hidden}"/&gt;
  </code></pre>
  
  <p>In the backing bean,
  I have getters and setters for hidden of type HTMLInputHidden, and I retrieve the hidden value by using getValue().
  This should return the valueCalculated but it returns null.
  What is the way to obtain the calculated value in the backing bean.</p>