Hello everybody,

First of all a big THANKS to everyone involved in developing and supporting 
GWT.

please correct me wherever I am wrong:

In the past you used JsonUtils.safeEval() to create a JavaScriptObject from 
a JSON String. As i understand it, jsinterop annotations on classes not 
extending JavaScriptObject are now preferred over JavaScriptObjects.

What is the recommended, future-proof way of having a server-client common 
class (i.e. package "shared") that can be:

- created and accessed in a JVM servlet
- created and accessed from the client end
- serialized to JSON / deserialized from JSON to the specific class on the 
server (e.g. using GSON)
- serialized to JSON / deserialized from JSON to the specific class on the 
client

Background: Using WebSocket Servers to bidirectionally transfer JSONified 
objects. No GWT-RPC involved.
Trying to avoid duplicate environment specific classes, boilerplate code 
etc.

Thanks for every clue and please overlook me not having a native English 
interface. ;)



kind regards,
max


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to