[ 
https://issues.apache.org/jira/browse/WICKET-6480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16222459#comment-16222459
 ] 

Kamil commented on WICKET-6480:
-------------------------------

isn't this related to: https://issues.apache.org/jira/browse/WICKET-6448 ?

> SubmitLink can submit the form multiple times
> ---------------------------------------------
>
>                 Key: WICKET-6480
>                 URL: https://issues.apache.org/jira/browse/WICKET-6480
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 7.8.0
>            Reporter: Sven Ackermann
>            Assignee: Andrea Del Bene
>            Priority: Trivial
>
> Hi,
> I recently had a problem with a SubmitLink where a user double clicked on it 
> (in Chrome 60.0.3112.90). The form was submitted twice and the submit action 
> executed twice. I even could reproduce this with 5 clicks resulting in 5 
> submits.
> To fix that, I just replaced the SubmitLink with a Button where the browser 
> submits the form only on the first click. Browsers can/do not prevent that 
> for the Javascript that is used with SubmitLink.
> Javadoc of SubmitLink says "A link which can be used exactly like a Button to 
> submit a Form.". That is not exactly true, because you have to be aware of 
> the fact that it does not prevent multiple submits.
> My suggestion is to either put a warning about that in the doc or add a flag 
> to SubmitLink that modifies the onclick-Javascript such that it will be 
> executed only once per page.
> Thanks
> Sven



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to