ICEfaces
  1. ICEfaces
  2. ICE-10967

ace:dateTimeEntry onchange event not re-registered when component is re-initialized

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Liferay/Portlet but likely a webapp problem as well
    • Assignee Priority:
      P1

      Description

      Steps to Reproduce:

      1. Start Liferay Portal 7.0-B7

      2. Deploy the attached icefaces4-portlet-4.0.0-SNAPSHOT.war artifact to $LIFERAY_HOME/deploy

      3. Add the ICEfaces4 portlet to a new portal page

      4. Reload the page

      5. When the applicant form is rendered, click in the "Date of Birth" field in order to cause the calendar to popup.

      6. Enter an invalid date via the keyboard and press TAB: 02/30/2016

      7. Observe that the field turns red in the browser and in the server log, that only the RESTORE_VIEW, APPLY_REQUEST_VALUES, PROCESS_VALIDATIONS, and RENDER_RESPONSE phases were executed. In other words, the UPDATE_MODEL_VALUES and INVOKE_APPLICATION phases are skipped since the date of birth value is invalid.

      8. Using the mouse, click in the Date of Birth field in order to popup the calendar and then click on any date in the calendar so that the value is valid.

      9. Observe in the server log that all phases of the JSF lifecycle were executed.

      10. Click in the "Date of Birth" field and enter an invalid date via the keyboard and press TAB: 02/30/2016

      If the bug is fixed, then the behavior of step#7 should be observed, meaning that the UPDATE_MODEL_VALUES and INVOKE_APPLICATION phases are skipped.

      If the bug still exists, then an XHR will not be submitted at all and the field will not turn red.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #47961 Fri Feb 19 09:50:15 MST 2016 ken.fyten ICE-10967 moved onchange event setup before call to re-initialize component in client.
        Files Changed
        Commit graph MODIFY /icefaces4/branches/icefaces-4.1.1/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #47950 Thu Feb 18 11:32:51 MST 2016 art.zambrano ICE-10967 moved onchange event setup before call to re-initialize component in client
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: