22 messages in com.googlegroups.google-visualization-api[visualization-api] Re: Date for anno...| From | Sent On | Attachments |
|---|---|---|
| Jeremiah Elliott | 12 Jun 2008 12:06 | |
| VizGuy (Google) | 15 Jun 2008 04:40 | |
| Jason | 17 Jun 2008 11:39 | |
| Jeremiah Elliott | 17 Jun 2008 14:51 | |
| Jason | 17 Jun 2008 19:34 | |
| Jeremiah Elliott | 18 Jun 2008 07:18 | |
| Jason Brechin | 18 Jun 2008 07:33 | |
| Jeremiah Elliott | 18 Jun 2008 07:43 | |
| Google VizGuy | 24 Jun 2008 03:38 | |
| Jeremiah Elliott | 24 Jun 2008 06:04 | |
| shayne (mabulu) | 26 Jun 2008 23:13 | |
| shayne (mabulu) | 26 Jun 2008 23:13 | |
| Jeremiah Elliott | 27 Jun 2008 06:06 | |
| Jeremiah Elliott | 27 Jun 2008 06:27 | |
| Jason Brechin | 27 Jun 2008 07:50 | |
| Uwe Maurer | 01 Jul 2008 09:43 | |
| shayne (mabulu) | 01 Jul 2008 09:56 | |
| Uwe Maurer | 01 Jul 2008 12:07 | |
| Jeremiah Elliott | 15 Jul 2008 11:04 | .html, .java, .html |
| Ray Cromwell | 15 Jul 2008 11:13 | |
| Ray Cromwell | 15 Jul 2008 11:16 | |
| Jeremiah Elliott | 15 Jul 2008 12:27 |
| Subject: | [visualization-api] Re: Date for annotated time line![]() |
|---|---|
| From: | Jeremiah Elliott (jere...@gmail.com) |
| Date: | 07/15/2008 11:04:56 AM |
| List: | com.googlegroups.google-visualization-api |
| Attachments: | ![]() 77EEB68C7B8A33AE437AD417BB42AB15.cache.html - 3k ![]() gwtTest.html - 3k |
Ok, well I finally got back to working on this problem. I created a test gwt app that does nothing but load the annotated time line with the same test data as the vis api web site. I have attached the .java file as well as the -style pretty output and my base html file.
If you look in 77EEB68C7B8A33AE437AD417BB42AB15.cache.html you will see that the contents of the JSNI method is largely unchanged. It is creating the date objects exactly the same way I put them into the java file. I am not a javascript guru by any stretch, so there may be something else that is causing the problem that I am not picking up on.
Any pointers would be helpful.
-Jeremiah
First off, I am by no means a javascript guru, so this may be a very obvious error. Having said that, the contents of the JSNI method are largely unchanged. When i run the app I get the same type mismatch error:
[ERROR] Unable to load module entry point class
com.sagus.client.gwtTest (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (Error): Type
mismatch. Value Fri Feb 01 2008 00:00:00 GMT-0600 (CST) does not match
type date in column index 0
fileName:
lineNumber: 0
stack: Error("Type mismatch. Value Fri Feb 01 2008 00:00:00 GMT-0600
(CST) does not match type date in column index 0")@:0
(0,[object
Date])@http://www.google.com/uds/api/visualization/1.0/default/a60f2b23df2246b4a939beaaa148b945/barchart,default,intensitymap,linechart,piechart.I.js:8
(0,0,[object
Date])@http://www.google.com/uds/api/visualization/1.0/default/a60f2b23df2246b4a939beaaa148b945/barchart,default,intensitymap,linechart,piechart.I.js:9
()@file:/home/geek/workspace/gwtTest/src/com/sagus/client/gwtTest.java:19
gwtOnLoad([object Window],"com.sagus.gwtTest")@:0
gwtOnLoad((function () {alert("Failed to load module
com.sagus.gwtTest\".\nPlease see the log in the development shell for
details.");}),"com.sagus.gwtTest","http://localhost:8888/com.sagus.gwtTest/")@http://localhost:8888/com.sagus.gwtTest/hosted.html?com_sagus_gwtTest:13
maybeStartModule()@http://localhost:8888/com.sagus.gwtTest/com.sagus.gwtTest.nocache.js:91
()@http://localhost:8888/com.sagus.gwtTest/com.sagus.gwtTest.nocache.js:314
@http://localhost:8888/com.sagus.gwtTest/hosted.html?com_sagus_gwtTest:27
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:443)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:235)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.sagus.client.gwtTest.onModuleLoad(gwtTest.java:48)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:303)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:324)
at
com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access$000(BrowserWidgetMoz.java:35)
On Tue, Jul 1, 2008 at 2:08 PM, Uwe Maurer <uwe....@gmail.com> wrote:
On Jul 1, 6:56 pm, "shayne (mabulu)" <shay...@gmail.com> wrote:
Thanks for the info. But I'm not using GWT Date objects here. I'm using straight Javascript in a JSNI function. So the Javascript line:
data.setValue(0, 0, new Date());
should work, but it doesn't. Unless GWT is somehow taking the Javascript and turning it into GWT (creating a GWT Date object)... and then translating it back into Javascript. That would seem silly. But who knows what's going on under the covers there?
This is strange.I suggest to compile your application with "-style pretty" and have a look what GWT generates.
Uwe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to goog...@googlegroups.com
To unsubscribe from this group, send email to
goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---





.html, .java, .html