[ 
https://issues.apache.org/jira/browse/TAP5-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade closed TAP5-2160.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 5.4

In 5.4, all fields with {{type="submit"}} will be ignored.

> 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
>              Labels: ajax, button, forms, javascript
>             Fix For: 5.4
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to