title: Pure Java/JSF implementation for double submit prevention
body: <p>We're using JSF 2.0 on WebSphere v8.5 with several component libraries PrimeFaces 4.0, Tomahawk 2.0, RichFaces, etc.</p>
  
  <p>I am looking for generic mechanism to avoid form re-submission when the page is refreshed, or when the submit button is clicked once again. I have many applications with different scenarios.</p>
  
  <p>For now I have considered disabling the button with a piece of JavaScript in <code>onclick</code> attribute, but this is not satisfying. I'm looking for a pure Java implementation for this purpose, something like the Struts2 <code>&lt;s:token&gt;</code>.</p>