Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2087

Checkboxes in forms always return "on" (considered as "checked" server-side)

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        1. checkbox-checked.patch
          2 kB
          Julien Blatecky

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              julien1619 Julien Blatecky
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: