Still on the server side.

On 10 mrt, 15:47, MC Get Vizzy <[email protected]> wrote:
> I'm not sure I understand.  You need to deserialize the DataTable on the
> client or the server?
>
> On Thu, Mar 10, 2011 at 12:58 PM, Edwin van de Koppel <
>
>
>
>
>
>
>
> [email protected]> wrote:
> > Hello all,
>
> > I am using the google-visualization-java in my Java AppEngine/GWT
> > project (Eclipse).
>
> > From the client side I am doing a HTTP get to the server side to
> > retrieve a com.google.visualization.datasource.DataTable object.
> > On that server side the DataTable object is being built up from the
> > app engine datastore OR memcache. In order to be able to store a
> > DataTable into memcache, it has to be serializable. Therefore, I
> > convert it to a JSON string:
>
> > String aJsonString = JsonRenderer.renderDataTable(myDataTable, true,
> > true).toString();
>
> > (JsonRenderer is part of the google-visualization-java package)
> > Yet, I cannot figure out how to turn a JSON string back into a
> > DataTable object.
>
> > I have tried the following:
>
> > public static native DataTable toDataTable(String theJsonString) /*-{
> >        return new DataTable(eval("("+theJsonString+")"));
> > }-*/;
> > DataTable myDataTable = toDataTable(aJsonString);
>
> > but then I am getting a java.lang.UnsatisfiedLinkError.
>
> > So what am I doing wrong? Or is there another way?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Visualization API" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/google-visualization-api?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to