Hi, I've created a project for my own needs called GWT RTTI (
http://code.google.com/p/gwt-rtti/) it generates reflection information for
certain packages at compile time using generators and lets you use it on
the client (it is similar to JAVA reflection API with few differences). But
bare in
For JSO Overlay Types:
Assuming your JSON structure looks like this:
{'name':'test','id':123}
For that you can create an overlay class like this:
class MyDTO extends JavaScriptObject {
protected MyDTO {}
public final native Integer getId() /*-{
return this.id;
I'm really having a hard time finding something that will work here.
Regarding your suggestions:
- Json Overlay Types
(This one I have not implemented yet...I was not sure how to do this)
- AutoBeans
I can't get this to work properly, there are no errors reported just
doesn't work at runtime.
Please see www.DataStoreGwt.com. It helps you to have a single object model
for driving UI and for saving. It serializes an arbitrarily complex object
graph at the client side and persists.
J.Ganesan
On Saturday, October 20, 2012 2:00:14 AM UTC+5:30, dhoffer wrote:
I'm really having a hard
I have some rather complex data objects that currently get marshaled from
client to server and server to client (comet communication). Btw, not
complex in quantity of data, or data relationships, but data is arrays of
lots of different derived interface/class types. The data used to be just
Is it possible to perform regular Java object serialization in the GWT
client?
Puh, once compiled your Java code is JavaScript code. No JVM available, no
reflection available, classes/methods/variable names obfuscated. So your
only chance would be a GWT generator that produces