Class.getName() is emulated On Jul 6, 9:04 am, Paul Stockley <[email protected]> wrote: > You need to use deferred binding i.e. GWT.create and write a code > generator. I suggest you check out the GWT source code from SVN and > look at their RPC generator code. > > On Jul 6, 8:54 am, André Moraes <[email protected]> wrote: > > > ? > > > 2010/7/5 André Moraes <[email protected]> > > > > The GWT has the standard GWT-RPC to make easier to create RPC calls > > > and fetch data from the server, but this tool only works if we have > > > Java on the server side. > > > > In my current project, the server side will be .NET based. > > > > So I wrote a JSON-RPC library which implements the JSON-RPC standard > > > to provide RPC facilities. > > > > The library is OK but I don't have the serialization facilities and I > > > need to manually populate a JavaScriptObject with the information that > > > i want transfered. > > > > I started now to write a automated serialization for the objects based > > > on Annotations and Generatos, but i don't know how to discover the > > > type of my object at runtime. > > > > I have a lot of polymorphic associations and will be nice to have some > > > of those in my DTO's. > > > > So is there a way that I can get the type of a Object in GWT at > > > runtime or I need to provide some Interface that my DTO's will need to > > > implement that will have a method which returns some value that > > > identify the type? > > > > If I need to use the Interface approach, is there a way that using > > > generators I change the code of the class and then implement in a > > > automated way? (Whithout defining the generator for each class in the > > > module.gwt.xml) > > > > Thanks. > > > > -- > > > 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]<google-web-toolkit%2Bunsubs > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > André Moraes > > Analista de Desenvolvimento de Sistemas > > [email protected]http://andredevchannel.blogspot.com/ > >
-- 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.
