I guess it depends on what your server side object looks like. I´ve been using a mapping framework called Dozer in a couple of projects where I needed to use EJB-classes on the client side. What you do in that case is basically create a POJO that is a mirror of your EJB, but without all the annotations. The resulting object is something that the GWT-compiler can understand. So on the server side you do the mapping, EJB -> POJO, and then transfer the POJO to the client side. If you need to persist some changes to the EJB, you just send your POJO back to the server side, and reverse the mapping, that is POJO -> EJB.
However I´m not sure this is relevant info in your case. Maybe if you post your server side object we can help better. On 8 Nov, 19:30, Sanjith Chungath <[email protected]> wrote: > Greetings to all, > I have defined a class in the server and want to get a list of > objects (of that class) as return parameter of an async call. But while > compile I got following error "No source code is available for type > com.abc.pqr.data.XXX; did you forget to inherit a required module?". I know > that it is because GWT dont know the java script code for coresponding > class. What is the general practice to use a object of class in server side > at client code, serialize it? or any other better way. > > -Sanjith. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
