If you want to pass objects between to separately compiled gwt modules via javascript it can only be object that extend JavaScriptObject or primitives. but these can also be your custom overlay objects defined on both sides. for example when module A knows about com.google.gwt.core.client.JsDate and module B knows it either they can pass this object over javascript and "overlay it properly" as JsDate extends JavaScriptObject, but it is not valid as to "plain java objects" as they are (or most possibly are) differently compiled on both sides. If you need to share a "plain java objects" you can make a JavaScript wrapper over it and pass the wrapper js object to another module which can treat it as overlay object - but as you see it is rather a emergency hack than the solution to be use extensively :).
-- 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.
