[
https://issues.apache.org/jira/browse/WICKET-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16125803#comment-16125803
]
Sebastien Briquet commented on WICKET-6448:
-------------------------------------------
To prevent double submit, the button should likely be disabled on ajax-start
and re-enabled on ajax-stop.
The problems are:
1/ if the button is disabled just before the submit, it will not be part of the
form data, therefore button#onSubmit will never be reached (but form#onSubmit
will)
2/ on Chrome and IE, disabling the button will just prevent the form to be
submitted. It work on FF however
So, a smart alternative should be found...
> IndicatingAjaxButton should prevent double submit
> -------------------------------------------------
>
> Key: WICKET-6448
> URL: https://issues.apache.org/jira/browse/WICKET-6448
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 8.0.0-M6
> Reporter: Kamil
> Attachments: showcase-preventClick.zip
>
>
> 1)Run the app
> 2)Click "submit" quickly several times
> 3)Watch the console
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)