Ben Dotte (JIRA) a écrit :
Double submit stopper for Form
------------------------------

                 Key: TAPESTRY-1675
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1675
             Project: Tapestry
          Issue Type: Improvement
          Components: JavaScript
    Affects Versions: 4.1.3
            Reporter: Ben Dotte
            Priority: Minor


It would be nice if Form had a built-in mechanism to prevent multiple clicks on 
submit buttons from submitting the form more than once. We had been doing this 
with a little javascript on Form's onsubmit event but now onsubmit is a 
reserved parameter. As a workaround it appears we can still use Submit's 
onsubmit event, but this still seems like something that should be on Form, and 
perhaps should be a part of the framework itself.

Form could have an optional parameter "preventMultiple" or something like that. 
The only question is, should it default to on or off?
I would like to add a comment on the JIRA but it dos not works ...
by the way :

it exists the component SubmitOnce in the tapestry-bayeux package:
http://tapestry-bayeux.sourceforge.net/components/SubmitOnce.html

perhaps it could be integrated in tapestry core ?

cyrille



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to