ICEfaces
  1. ICEfaces
  2. ICE-11273

Reset type ace:pushButton fails with mobi date and time spinners

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: EE-4.2.0.GA
    • Labels:
      None
    • Environment:
      ICEfaces4 trunk r51330
      Browsers: all (tested on MsEdge, FF49)
      Server: Tomcat7
    • Assignee Priority:
      P2

      Description

      On a test page with a "Reset" type ace:pushButton and a mobi:dateSpinner and mobi:timeSpinner, the values in the mobi components are changed; when clicking the "Reset" type ace:pushButton, the updated values are reset only in the input entries; if clicking the calendar icons and re-opening the mobi components, the values are not reset.
      See attached screen shots.

      QA test app:
      http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/pushButton

      Test page: /ICE-10114mobi.jsf

      1. 1.PNG
        8 kB
      2. 2.PNG
        7 kB
      3. reset.PNG
        46 kB

        Activity

        Hide
        Judy Guglielmin added a comment -

        rev 41466 timespinner and dateSpinner now have clear and reset support. pushButton QA test updated (ICE-10114mobi.xhtml) rev 46908 to make testing clearer.

        Show
        Judy Guglielmin added a comment - rev 41466 timespinner and dateSpinner now have clear and reset support. pushButton QA test updated ( ICE-10114 mobi.xhtml) rev 46908 to make testing clearer.
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces 4 trunk r51480, Tomcat 8.
        After using the Clear button then opening the date or time picker, the components are no longer usable as they are loaded with blank values. When toggling up or down the value returned is NaN. See attached screenshots 1.PNG and 2.PNG

        To reproduce:
        Use QA test app /ICE-10114mobi.jsf found at:
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/pushButton

        1.) Open app and press the Clear button for the date and time spinners, the text input fields are cleared.
        2.) Click on the popup calendar icon for either the date or time picker. Picker values are blank.

        Show
        Liana Munroe added a comment - Tested with ICEfaces 4 trunk r51480, Tomcat 8. After using the Clear button then opening the date or time picker, the components are no longer usable as they are loaded with blank values. When toggling up or down the value returned is NaN. See attached screenshots 1.PNG and 2.PNG To reproduce: Use QA test app / ICE-10114 mobi.jsf found at: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/pushButton 1.) Open app and press the Clear button for the date and time spinners, the text input fields are cleared. 2.) Click on the popup calendar icon for either the date or time picker. Picker values are blank.
        Hide
        Judy Guglielmin added a comment -

        rev 51501

        Show
        Judy Guglielmin added a comment - rev 51501
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces 4 trunk r51503. The date and time pickers are still rendered with empty values after pressing the Clear button.

        Show
        Liana Munroe added a comment - Tested with ICEfaces 4 trunk r51503. The date and time pickers are still rendered with empty values after pressing the Clear button.
        Hide
        Ken Fyten added a comment -

        The reset and clear functions should affect the submitted value for the component, not he picklist values.

        Reset

        1. Form loads with my birthday as the selected date and my birthtime as the selected time (say Sept. 20th, 1979 @ 2am).
        2. I edit those values to Sept. 22nd, 2017 @ 5:00pm
        3. I press Reset, now the values for the date and time entry are reset to the original values they had when the form was loaded, my birthday and time (Sept. 20th, 1979 @ 2am).

        Clear

        1. Form loads with my birthday as the selected date and my birthtime as the selected time (say Sept. 20th, 1979 @ 2am).
        2. I edit those values to Sept. 22nd, 2017 @ 5:00pm
        3. I press Clear, now the values for the date and time entry are reset to null values, as if nothing had ever been entered for them.
        Show
        Ken Fyten added a comment - The reset and clear functions should affect the submitted value for the component, not he picklist values. Reset Form loads with my birthday as the selected date and my birthtime as the selected time (say Sept. 20th, 1979 @ 2am). I edit those values to Sept. 22nd, 2017 @ 5:00pm I press Reset, now the values for the date and time entry are reset to the original values they had when the form was loaded, my birthday and time (Sept. 20th, 1979 @ 2am). Clear Form loads with my birthday as the selected date and my birthtime as the selected time (say Sept. 20th, 1979 @ 2am). I edit those values to Sept. 22nd, 2017 @ 5:00pm I press Clear, now the values for the date and time entry are reset to null values, as if nothing had ever been entered for them.
        Hide
        Liana Munroe added a comment - - edited

        For an example of the Clear functionality with dateTimeEntry use the /ClearResetSubmit.jsf test (ace:pushButton Clear/Reset/Submit Attributes) app at:
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/pushButton

        Show
        Liana Munroe added a comment - - edited For an example of the Clear functionality with dateTimeEntry use the /ClearResetSubmit.jsf test (ace:pushButton Clear/Reset/Submit Attributes) app at: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/pushButton
        Hide
        Judy Guglielmin added a comment -

        rev 51515 when useNative is false, the popups are no longer cleared of values when the clear button on the test (triggering the "clear" function) is fired.

        Show
        Judy Guglielmin added a comment - rev 51515 when useNative is false, the popups are no longer cleared of values when the clear button on the test (triggering the "clear" function) is fired.
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r51517, tomcat 8, MS Edge, IE 11, 10, FF 47, Chrome 57, android 6.0.1, ios 10.2

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r51517, tomcat 8, MS Edge, IE 11, 10, FF 47, Chrome 57, android 6.0.1, ios 10.2

          People

          • Assignee:
            Judy Guglielmin
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: