Wednesday, May 4, 2011

2.3 local storage api and client side gwt objects

I have a client side entity object (let's call it person) and I want
to store it locally. It looks like the current 2.3 local storage api
only stores Strings with a String key. Is there a way to get the json
of an object (or any common understood string representation) so I can
store it?

something like myPerson.toJavascriptString();

Obviously that's not a real method, I'm looking for a way to simply
and quickly serialize and deserialize my gwt generated java (really
javascript) objects to and from a string so I can store the fully
realized object in local storage.

-Dave

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment