ICEfaces
  1. ICEfaces
  2. ICE-6675

Checkbox (<h:selectBooleanCheckbox>) doesn't work in IE9

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      IE9

      Description

      In ace-showcase the "Date Time Entry" page contains two checkbox (<h:selectBooleanCheckbox>). The "Render as popup" checkbox works only on first uncheck. Afterwards, with every click, the check mark just flashes and disappears.

        Activity

        Hide
        Mircea Toma added a comment -

        The state of the checkbox is not toggled correctly because the input element representing the checkbox is not properly serialized. In all the other browsers when input's 'value' attribute is not defined the browser will use the 'on' string as the default value. In IE9 the value returned is the empty string even when the checkbox is selected. The h:selectBooleanCheckbox renderer considers the checkbox selected only when the received value equals 'yes', true' or 'on', since IE9 sends an empty string the renderer won't toggle the state of the checkbox component.

        Show
        Mircea Toma added a comment - The state of the checkbox is not toggled correctly because the input element representing the checkbox is not properly serialized. In all the other browsers when input's 'value' attribute is not defined the browser will use the 'on' string as the default value. In IE9 the value returned is the empty string even when the checkbox is selected. The h:selectBooleanCheckbox renderer considers the checkbox selected only when the received value equals 'yes', true' or 'on', since IE9 sends an empty string the renderer won't toggle the state of the checkbox component.
        Hide
        Mircea Toma added a comment -

        Changed jsf.js in JSF 2.1.1-b02 to use the 'on' string as the default value for a selected checkbox in case the value of the 'value' attribute is the empty string.

        Show
        Mircea Toma added a comment - Changed jsf.js in JSF 2.1.1-b02 to use the 'on' string as the default value for a selected checkbox in case the value of the 'value' attribute is the empty string.
        Hide
        Mircea Toma added a comment -

        Updated also the patched JSF libraries in 'lib' directory.

        Show
        Mircea Toma added a comment - Updated also the patched JSF libraries in 'lib' directory.
        Hide
        Mircea Toma added a comment -

        Recorded issue in JSF bug tracking system: http://java.net/jira/browse/JAVASERVERFACES-2004

        Show
        Mircea Toma added a comment - Recorded issue in JSF bug tracking system: http://java.net/jira/browse/JAVASERVERFACES-2004

          People

          • Assignee:
            Unassigned
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: