You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Raul Montes (JIRA)" <ji...@apache.org> on 2013/08/26 19:17:51 UTC

[jira] [Created] (TAP5-2160) Button type submit should be ignored in ajax form submission just like input type submit

Raul Montes created TAP5-2160:
---------------------------------

             Summary: Button type submit should be ignored in ajax form submission just like input type submit
                 Key: TAP5-2160
                 URL: https://issues.apache.org/jira/browse/TAP5-2160
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.3.7
            Reporter: Raul Montes
            Priority: Trivial


In tapestry.js, line 808, inputs type submit are ignored for form serialization (in case of ajax form submission). But button type submit are also a valid way of submitting the form. Besides, as with input type submit, it doesn't make sense to send buttons as fields values.

Prototype 1.6 automatically ignored button elements when serializing, but 1.7 includes them. In order to avoid sending this data pointlessly, line 808 could be changed to:

return (e.tagName == "INPUT" || e.tagName == "BUTTON") && e.type == "submit";

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira