You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/03/15 01:50:15 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13602964#comment-13602964 ]
Hudson commented on TAP5-2087:
------------------------------
Integrated in tapestry-trunk-freestyle #1034 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/1034/])
TAP5-2087: Handle checkboxes correctly in Ajax form submissions (Revision dc64b55edc2ee9fd82d668fd7c0df1a886760160)
Result = SUCCESS
hlship :
Files :
* tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-prototype.coffee
* tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
* tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/forms.coffee
> 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