How to prevent DoubleSubmit in a GWT application?
问题 To clarify what double submit is: When the user clicks on a submit button twice, the server will process the same POST data twice. To avoid this (apart from disabling the button after a single submit), most web frameworks like Struts provide a token mechanism. I am searching for the equivalent of this in GWT. 回答1: If you want to avoid submitting twice, how about: boolean processing = false; button.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if (