You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/03/15 01:06:13 UTC
[jira] [Closed] (TAP5-2087) Checkboxes in forms always return "on"
(considered as "checked" server-side)
[ 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