You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ben Dotte (JIRA)" <de...@tapestry.apache.org> on 2007/07/27 17:44:18 UTC

[jira] Created: (TAPESTRY-1675) Double submit stopper for Form

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?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: [jira] Created: (TAPESTRY-1675) Double submit stopper for Form

Posted by #Cyrille37# <cy...@gmail.com>.
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org