ICEfaces
  1. ICEfaces
  2. ICE-8312

ace:dateTimeEntry - JavaScript error thrown after submitting an invalid date format

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA2
    • Fix Version/s: 3.1.0.RC1, 3.1, EE-3.0.0.GA_P01
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3.1.0 BETA2 062612
    • Assignee Priority:
      P3

      Description

      After entering an invalid date and submitting the value an error message is shown for the dateTimeEntry. Once this message is shown if you try and click in the date to change it a "date is null" JavaScript error is thrown and the component no longer works.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • Enter in "11" to the input field for the dateTimeEntry
        • Click on the Submit button, an error message is shown for the component.
        • Click in the input field, a JavaScript error is thrown.
        Show
        Arran Mccullough added a comment - Attached test case that shows issue. Steps: Load welcomeICEfaces.jsf Enter in "11" to the input field for the dateTimeEntry Click on the Submit button, an error message is shown for the component. Click in the input field, a JavaScript error is thrown.
        Hide
        yip.ng added a comment -

        jQuery UI Datepicker doesn't check invalid values thoroughly enough. Fixed by checking for invalid values first in renderer when rendering JS.

        Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java
        Completed: At revision: 29750

        Show
        yip.ng added a comment - jQuery UI Datepicker doesn't check invalid values thoroughly enough. Fixed by checking for invalid values first in renderer when rendering JS. Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java Completed: At revision: 29750
        Hide
        yip.ng added a comment -

        Done.

        Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java
        Completed: At revision: 29848

        Show
        yip.ng added a comment - Done. Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java Completed: At revision: 29848

          People

          • Assignee:
            yip.ng
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: