You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Julien Blatecky (JIRA)" <ji...@apache.org> on 2013/03/11 11:03:14 UTC

[jira] [Closed] (TAP5-2088) Checkboxes in forms always return "on" (considered as "checked" server-side)

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

Julien Blatecky closed TAP5-2088.
---------------------------------

    Resolution: Duplicate
    
> Checkboxes in forms always return "on" (considered as "checked" server-side)
> ----------------------------------------------------------------------------
>
>                 Key: TAP5-2088
>                 URL: https://issues.apache.org/jira/browse/TAP5-2088
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Julien Blatecky
>              Labels: checkbox, dom, forms, javascript
>
> 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