Wicket
  1. Wicket
  2. WICKET-4410

The datepicker components stops popup in Chrome 17.

    Details

      Description

      The datepicker components stops popup in Chrome 17. To reproduce bug follow steps bellow:
      1) Fill in date in the input.
      2) Repeat some times cycle of show-hide.

      Chome's Console will show error:
      Uncaught TypeError: this is not a Date object.
      YAHOO.widget.DateMath.clearTime calendar.js:1052
      Calendar.isDateOOB calendar.js:4037
      Calendar.select calendar.js:3702
      Wicket.DateTime.showCalendar wicket-date.js:154
      showCalendar wicket-date.js:180
      _addListener.wrappedFn event.js:937

      Surrounding code in clearTime js function (from calendar.js) with try/finally bug fixes.

      1. ASF.LICENSE.NOT.GRANTED--datepicker_chrome_bug.jpg
        100 kB
        Ilya Tepikin
      2. datepickerbug.zip
        7 kB
        Ilya Tepikin
      3. datepickerbug-1.5.tgz
        4 kB
        Martin Grigorov
      4. QuickStartDatePicker.war
        3.88 MB
        Ilya Tepikin

        Activity

        Hide
        Ilya Tepikin added a comment -

        Looking for similar bug I noticed that the same bug appears in WICKET-3360 and took web app from it.

        Show
        Ilya Tepikin added a comment - Looking for similar bug I noticed that the same bug appears in WICKET-3360 and took web app from it.
        Hide
        Martin Grigorov added a comment -

        Currently wicket-datetime uses yui 2.8.1RC2. Looking at 2.9.0 (last from the 2.x series) changelog I don't see a fix which sounds like this problem.
        YUI team said that this is the last release of 2.x and it is recommended to use 3.x (3.4.1 at the moment).

        Show
        Martin Grigorov added a comment - Currently wicket-datetime uses yui 2.8.1RC2. Looking at 2.9.0 (last from the 2.x series) changelog I don't see a fix which sounds like this problem. YUI team said that this is the last release of 2.x and it is recommended to use 3.x (3.4.1 at the moment).
        Hide
        Martin Grigorov added a comment -

        YUI is updated to 2.9.0 in 1.5.x.
        Can you try whether your problem is gone there ? Or create a quickstart app that I can modify. See http://wicket.apache.org/start/quickstart.html

        Show
        Martin Grigorov added a comment - YUI is updated to 2.9.0 in 1.5.x. Can you try whether your problem is gone there ? Or create a quickstart app that I can modify. See http://wicket.apache.org/start/quickstart.html
        Hide
        Martin Grigorov added a comment -

        Closing until a quickstart app with sources is provided.

        Show
        Martin Grigorov added a comment - Closing until a quickstart app with sources is provided.
        Hide
        Ilya Tepikin added a comment -

        Sorry for such a delay.

        I've tested this project in chrome for many times and I can say that this bug is very unstable. One time it comes up after one cycle of calendar show-hide. Another time it may come up after 15 cycles. But each time Chrome's console points at "Uncaught TypeError: this is not a Date object." calendar.js:1052.

        Show
        Ilya Tepikin added a comment - Sorry for such a delay. I've tested this project in chrome for many times and I can say that this bug is very unstable. One time it comes up after one cycle of calendar show-hide. Another time it may come up after 15 cycles. But each time Chrome's console points at "Uncaught TypeError: this is not a Date object." calendar.js:1052.
        Hide
        Martin Grigorov added a comment -

        Reopen since there is a quickstart app now.

        Show
        Martin Grigorov added a comment - Reopen since there is a quickstart app now.
        Hide
        Martin Grigorov added a comment -

        I cannot run your quickstart for some reason...
        It fails for me with:

        java.lang.ClassNotFoundException: org.joda.time.ReadWritableInstant
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at com.mycompany.HomePage.<init>(HomePage.java:38)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:188)
        ....

        I guess it is some classpath clash with another project in my IDE.

        I'm attaching your app working with Wicket 1.5-SNAPSHOT.
        It works for me without problem.
        But I have Chrome 19.x here and Wicket 1.5 uses YUI 2.9.0 while 1.4.x - 2.8.2.

        Show
        Martin Grigorov added a comment - I cannot run your quickstart for some reason... It fails for me with: java.lang.ClassNotFoundException: org.joda.time.ReadWritableInstant at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at com.mycompany.HomePage.<init>(HomePage.java:38) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:188) .... I guess it is some classpath clash with another project in my IDE. I'm attaching your app working with Wicket 1.5-SNAPSHOT. It works for me without problem. But I have Chrome 19.x here and Wicket 1.5 uses YUI 2.9.0 while 1.4.x - 2.8.2.
        Hide
        Ilya Tepikin added a comment -

        Can't reproduce bug in your project. It seems like it was fixed in next versions. Thank you.

        Show
        Ilya Tepikin added a comment - Can't reproduce bug in your project. It seems like it was fixed in next versions. Thank you.
        Hide
        Martin Grigorov added a comment -

        I guess the upgrade of YUI fixes it.

        Show
        Martin Grigorov added a comment - I guess the upgrade of YUI fixes it.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2h
              2h
              Remaining:
              Remaining Estimate - 2h
              2h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development