Click
  1. Click
  2. CLK-123

value of CheckBox should not be the same as "checked" attribute

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: core
    • Labels:
      None
    • Environment:
      click-RC1

      Description

      I came across with the problem of getting checkbox value.
      The current CheckBox implementation implies that only boolean values are
      expected, coupled with "checked" attribute.
      But I wanted to get the value other than boolean, like the primary key of
      the database table. I expected the html tag as bellow:

      <input name="optionalanswer" type="checkbox" id="form_optionalanswer"
      value="ANSWER1" checked="checked"/>

      I think checkbox value should not go together with the "checked" toggle status,
      so it would not be necessary to override getValue(), setValue() etc. methods.

        Activity

          People

          • Assignee:
            Adrian A.
            Reporter:
            takata, satoshi
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development