Wicket
  1. Wicket
  2. WICKET-5125

IE8 error in wicket-date.js when used in a modalwindow

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.7.0
    • Component/s: wicket-datetime
    • Labels:
      None
    • Environment:
      NA

      Description

      Using the DatePicker in a ModalWindow, I get the error below after using the calendar widget and closing the modal. The widget works fine for me; it's simply throwing a JS error in IE8 (displayed in the
      lower lefthand corner of the browser). I don't see the error in other browsers.

      The problematic line in wicket-date.js is this one:

      YAHOO.wicket[cfg.dpJs].hide();

      I can avoid the error simply by adding a condition to the if-statement that is wrapped around the hide method to check that YAHOO.wicket[cfg.dpJs] is not null:

      if (... && YAHOO.wicket[cfg.dpJs]) ...

      I'm guessing that this is related to the bug fix for https://issues.apache.org/jira/browse/WICKET-4975 – perhaps the widget is getting destroyed in IE before it can be hidden?

      ========================================

      Webpage error details

      User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2;
      Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
      3.0.4506.2152; .NET CLR 3.5.30729)
      Timestamp: Fri, 29 Mar 2013 17:54:46 UTC

      Message: 'YAHOO.wicket[...]' is null or not an object
      Line: 308
      Char: 6
      Code: 0
      URI: http://127.0.0.1:8080/test/wicket/resource/org.apache.wicket.extensions.yui.calendar.DatePicker/wicket-date-ver-1359131272000.js

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Andrew Geery
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development