olvitole / google-web-toolkit-doc-1-5

Automatically exported from code.google.com/p/google-web-toolkit-doc-1-5
0 stars 0 forks source link

Using Fleegix Date with GWT 1.5 #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We have upgraded from GWT 1.4 to GWT 1.5.3 and discovered that our existing
JSNI method no longer works after the upgrade:

private static native Long getLongDateImpl(String dateString, String
timeZone) /*-{  
        var dt;
        if (timeZone != null) {
            dt = new $wnd.fleegix.date.Date(dateString, timeZone);
        } else {
            dt = new $wnd.fleegix.date.Date(dateString);
        }
        return dt.getTime();
    }-*/;
}

We have been using the Fleegix Date utility for timezone conversions, which
worked well with the previous versions of GWT.  I understand that long
values are no longer allowed in JSNI for GWT 1.5, which is probably the
cause of this issue in our application.  Is there a work-around to get this
to work with GWT 1.5?

Original issue reported on code.google.com by JoseRude...@gmail.com on 20 Dec 2008 at 7:08