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? Basically any technique that can reliably marshal/unmarshal serializable Java objects to/from strings that I can store in Local Storage will do.
I usually just use Java libraries, but none of the classes (like ByteArrayInputStream or Base64) is available on the client side. I did see some libs that move Java objects to/from JSON, but looks like there are strings attached and hoops I need to jump through - I'm still researching however. If you know of a good/reliable library (JSON/ByteArray/etc.), please help. Also, gwt-mobile-kit has a Local Storage API, but it's just a simple JSNI map, looks like (no marshaling). In general, Google: what are the plans for HTML5? Especially for Application Cache and Local Storage - those are harder since you can't just make simple maps to the JavaScript APIs with JSNI for them. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-web-toolkit?hl=en.
