ICEfaces
  1. ICEfaces
  2. ICE-5951

Regression Icefaces2 - ICE-2283 is failing

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0-Beta2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Server: Tomcat6
      Browser: FF3.6, IE8 & Opera10.10
    • Assignee Priority:
      P2

      Description

      Icefaces2 Revision# 22054

      This test case may have been failing for long because the the scripts were incorrect. Basically the problem is the same as described originally in ICE-2283.

      If I have something like this on my page:

      <ice:dataTable columnWidths="100px,200px,300px">
          <ice:column rendered="true"/>
          <ice:column rendered="false"/>
          <ice:column rendered="true"/>
      </ice:dataTable>

      Then I should get this rendered in my DOM:

      <table>
          <tr>
              <td width="100px"/>
              <td width="300px"/>
          </tr>
      </table>

      But instead, I get this:

      <table>
          <tr>
              <td width="100px"/>
              <td width="200px"/>
          </tr>
      </table>

      Test-case available at "C:\repo\qa\trunk\Regression-Icefaces2\Nightly\ICE-2283".

        Activity

        Hide
        Mandeep Hayher added a comment -

        Failing on Icefaces2 trunk revision# 22353
        Was passing on Icefaces2 trunk revision# 22344

        ICE-3190 is not working as expected.
        The Checkbox is not cleared after clicking on the clean button, all other components on the page are cleared.
        Test application is available at " \repo\qa\trunk\Regression-Icefaces2\Nightly\ICE-3190".

        Show
        Mandeep Hayher added a comment - Failing on Icefaces2 trunk revision# 22353 Was passing on Icefaces2 trunk revision# 22344 ICE-3190 is not working as expected. The Checkbox is not cleared after clicking on the clean button, all other components on the page are cleared. Test application is available at " \repo\qa\trunk\Regression-Icefaces2\Nightly\ ICE-3190 ".
        Hide
        Mircea Toma added a comment -

        ICE-2283 test application has the delta submit turned by default. This caused the apparent regression. Changed web.xml to disable delta submit.

        Show
        Mircea Toma added a comment - ICE-2283 test application has the delta submit turned by default. This caused the apparent regression. Changed web.xml to disable delta submit.
        Hide
        Ken Fyten added a comment -

        ICE-3190 is not passing yet, and does not have deltaSubmit=true specified. (See Mandeep's comment above).

        Show
        Ken Fyten added a comment - ICE-3190 is not passing yet, and does not have deltaSubmit=true specified. (See Mandeep's comment above).
        Hide
        Mircea Toma added a comment -

        Previously the decode() method assumed that the checkbox is selected only when the corresponding parameter had a value of 'on', 'true' or 'yes'. Since the encoding didn't control the 'value' attribute of the input element the renderer was relying only on the default behavior of the browser to set the value to 'on'. Unfortunately not all the browsers have the same default behavior, notably Safari which will default the value to empty string after an update.

        The fix changes decode() method to reliably detect when checkbox is selected by simply verifying if the corresponding parameter name is present among the request parameters. This is enough to indicate that the checkbox is selected, the value of the corresponding parameter is not significant.

        Show
        Mircea Toma added a comment - Previously the decode() method assumed that the checkbox is selected only when the corresponding parameter had a value of 'on', 'true' or 'yes'. Since the encoding didn't control the 'value' attribute of the input element the renderer was relying only on the default behavior of the browser to set the value to 'on'. Unfortunately not all the browsers have the same default behavior, notably Safari which will default the value to empty string after an update. The fix changes decode() method to reliably detect when checkbox is selected by simply verifying if the corresponding parameter name is present among the request parameters. This is enough to indicate that the checkbox is selected, the value of the corresponding parameter is not significant.
        Hide
        Mandeep Hayher added a comment -

        ICE-3190 passed during nightly regression test on Icefaces2 trunk revision# 22397

        Show
        Mandeep Hayher added a comment - ICE-3190 passed during nightly regression test on Icefaces2 trunk revision# 22397

          People

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

            Dates

            • Created:
              Updated:
              Resolved: