[email protected] wrote:
I'm using post-redirect, but impatient users press reload before any response gets back..

Ah that's good. Just note that the way Click supports post-redirect should actually solve your problem above. If you have the following code in your Page:

 public MyPage extends Page {

   public boolean onSecurityCheck() {
     return form.onSubmitCheck(this, "/invalid-submit.html");
   }
}

the "form.onSubmitCheck" creates and stores a token in the users session which is checked against the incoming request. So even if the first request has not completed when the second one arrives, the second request contains an old version of the token and won't be processed.


i will look forward to put some ajax visual feedback showing the status of the 
process, this can help to keep users calm...

Agreed, this is a good idea.

kind regards

bob

Reply via email to