Wouldn't that just be: public static native JavaScriptObject newDataTable(String json) /*-{ return new google.visualization.DataTable(eval('(' + json +')')); }-*/
On Wed, Dec 31, 2008 at 16:57, Paul Shannon <pshan...@systemsbiology.org>wrote: > > I can do this in javascript: > > var data = new google.visualization.DataTable (jsonString.evalJSON(), > 0.5); > > I'd really like to do the same in Java, with a > gwt.visualization.client.DataTable object. I have successfully read > the jsonString, in Java, using RequestBuilder. > > Any advice? Do I need to parse the jsonString? If so, how do I do > *that*? > > Thanks! > > - Paul Shannon > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---