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

        Arran Mccullough created issue -
        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.
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case11414Example.war [ 14645 ]
        Attachment Case11414Example.zip [ 14646 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000MJ8if]
        Ken Fyten made changes -
        Fix Version/s 3.1.0.RC1 [ 10337 ]
        Fix Version/s 3.1 [ 10312 ]
        Assignee Priority P1
        Assignee yip.ng [ yip.ng ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29750 Thu Jun 28 13:21:26 MDT 2012 yip.ng ICE-8312: ace:dateTimeEntry - JavaScript error thrown after submitting an invalid date format.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
        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
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29848 Fri Jul 06 16:01:55 MDT 2012 yip.ng ICE-8312: ace:dateTimeEntry - JavaScript error thrown after submitting an invalid date format.
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P1 P3
        Ken Fyten made changes -
        Fix Version/s EE-3.0.0.GA_P01 [ 10327 ]
        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
        yip.ng made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: