On Wednesday, April 13, 2011 2:57:35 AM UTC+2, Owen Ilagan wrote: > > Hello! > > I'm trying to make Request Factory work on GWT plug-in (2.2.1) for > Eclipse 3.6 and I've run into a dilemma. While I got most of the > coding required done, not an easy task given that I had to go through > a lot of references and head scratching, my real troubles began when I > put persistence code which is supposed to be server-side only on my > service/locator classes. I use the same persistence code framework > that I normally use for RPC style services. Obviously, GWT would > refuse to compile when code like that is present in the client or > shared package. However, if I move the offending class to the server > package, the GWT editor reports an impending build error because the > class referenced by the @Service annotation in other classes is no > longer included in the client/shared package.
This is actually a bug in the Google Plug for Eclipse. Your code will work. See http://code.google.com/p/google-web-toolkit/issues/detail?id=5587 > How can I resolve this? If it really bothers you, you can replace your @ProxyFor and/or @Service annotations with @ProxyForName and @ServiceName. You'll lose compile-time type-safety and class-reference checks though, and you'll have to be careful when refactoring (renaming, moving around) your server-side classes. -- 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.
