title: JSF double submission of form data
body: <p>I am haunting a hard to reproduce bug of my jsf application (Mojarra 2.1 on Glassfish 3.0.1 with Primefaces 2.1, SSL). I have the suspicion that it might have something to do with double or multiple submission of the same form, e.g. when a user double clicks a submit button.</p>
  
  <p>The symptoms of this bug are that the server interrupts the transmission of resource files (javascript, css) and the page then will look strange (missing css) or will not work as expected (missing js).</p>
  
  <p>I am not sure that this is the only reason. This is hard to figure out since the error happens very occasionally.</p>
  
  <p>Is there a way to prevent multiple submission of the same form? A javascript solution would do it. But maybe there is a server side solution, maybe a specific jsf configuration?</p>