<t:checkboxes ...> are always submitted as checked. Boils down to a
bug in the value() function in t5-core-dom-prototype.coffee.

The value() function assumes the $.val() function works for all input
elements, which is not the case. See http://api.jquery.com/val/

As a workaround I've patched my value() function with this:

    value: (newValue) ->
      current = @$.val()

# ---- MUNKY PATCH ----
      if @$.attr("type") == "checkbox"
        current = @$.attr("checked")
# ---- MUNKY PATCH ----

      if arguments.length > 0
        @$.val newValue

      return current

There's probably a better way to do with $ selectors, but not being a
jQuery expert I don't know how to extend the current selected object.

Steve.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to