You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/04/08 23:15:16 UTC

[jira] [Resolved] (WICKET-5125) IE8 error in wicket-date.js when used in a modalwindow

     [ https://issues.apache.org/jira/browse/WICKET-5125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-5125.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.7.0
         Assignee: Martin Grigorov
    
> IE8 error in wicket-date.js when used in a modalwindow
> ------------------------------------------------------
>
>                 Key: WICKET-5125
>                 URL: https://issues.apache.org/jira/browse/WICKET-5125
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-datetime
>    Affects Versions: 6.5.0
>         Environment: NA
>            Reporter: Andrew Geery
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.7.0
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira