You could use JSON and javascript overlay types to access the information in a type safe way.
On Jul 15, 10:55 am, Stefan Bachert <stefanbach...@yahoo.de> wrote: > Hi Sekhar, > > this is my first thought. Just use JSON. Then you can use "eval" to > read it. > However, I do not know any method to export a object to json string. > But this should not be too complicated to do yourself, or lookout for > such a library > > Stefan Bacherthttp://gwtworld.de > > On 15 Jul., 01:34, Sekhar <sek...@allurefx.com> wrote: > > > > > Thanks, yeah - sawhttp://goo.gl/fTloafterI posted. So, I guess > > we'll need to implement something of our own, like a simple to/from > > JSON strings. Any other thoughts/suggestions? > > > On Jul 14, 3:37 pm, Thomas Broyer <t.bro...@gmail.com> wrote: > > > > On 14 juil, 21:41, Sekhar <sek...@allurefx.com> wrote: > > > > > Guys, I'm trying to use HTML5 Local Storage and am wondering how I can > > > > save the data from the server as a string. Since GWT-RPC already > > > > serializes/deserializes Java serializable objects, is there a way to > > > > access its serialization functions to marshal the data to/from the > > > > Local Storage strings? > > > > You can gain access to the GWT-RPC serialization code (provided your > > > objects are used in a GWT-RPC somewhere, so the GWT compiler generates > > > the appropriate serialization/deserialization code), but it won't be > > > of any help in your case, as GWT-RPC serialization is asymmetric (for > > > performance reasons). -- 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-tool...@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.