title: inputHidden binding to a long id field in backing bean
body: <p>Just wondering how to set a hidden field value so that when I submit my form, JSF sets it as the id in an object in my CDI-managed bean.</p>
  
  <p>My bean is called "discussionManager" and it has an object in it called 'discussion', which is an entity and therefore has an ID of type Long.</p>
  
  <p>I need the ID so I can look it up and do stuff with it. But, JSF doesn't seem to like numeric hidden fields. It is fine with string fields though. Sure it has something to do with converters or the binding attribute, but can't get the syntax. This is what I'm trying in it's simplest form.</p>
  
  <pre><code>&lt;h:inputHidden id="discussionId" value="#{viewDiscussionBean.discussion.id}"/&gt;
  </code></pre>
  
  <p>I've tried lots of variations. Can anyone point me in the right direction please?</p>
  
  <p>Thanks</p>