tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TAP5-2087) Checkboxes in forms always return "on" (considered as "checked" server-side)
Date Fri, 15 Mar 2013 00:06:13 GMT

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

Howard M. Lewis Ship closed TAP5-2087.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4
         Assignee: Howard M. Lewis Ship
    
> Checkboxes in forms always return "on" (considered as "checked" server-side)
> ----------------------------------------------------------------------------
>
>                 Key: TAP5-2087
>                 URL: https://issues.apache.org/jira/browse/TAP5-2087
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Julien Blatecky
>            Assignee: Howard M. Lewis Ship
>              Labels: checkbox, dom, forms, javascript
>             Fix For: 5.4
>
>         Attachments: checkbox-checked.patch
>
>
> Checkboxes seem to be always checked, because forms.js, in the gatherParameters method,
always retrieve the value() of a checkbox. In jQuery val() always returns "on" for a checkbox,
checked or not.
> I think forms.js should test if the field is a checkbox and if it is checked, if not,
return; on this field, just like it would be on a classic form.

--
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

Mime
View raw message