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.
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).
I am not sure that this is the only reason. This is hard to figure out since the error happens very occasionally.
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?