[ https://issues.apache.org/jira/browse/WICKET-6480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrea Del Bene reassigned WICKET-6480: --------------------------------------- Assignee: Andrea Del Bene > 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 > > 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)