Turns out i mixed up @Service(value = User.class, locator = MyServiceLocator.class) with @Service(value = UserDao.class, locator = MyServiceLocator.class)
I have a second question. Is there a way to handle InstanceRequest<UserProxy, Void> saveCurrentUser() from the RequestContext in my UserDao.cass with a User object associated with a UserProxy object? On 22 Maj, 18:07, rwiatr <[email protected]> wrote: > Hello, > It seems that RequestFactory framework requires to store my object > access functions inside domain objects. > e.g > > @Service(value = User.class, locator = MyServiceLocator.class) > public interface UserRequest extends RequestContext { > Request<UserProxy> getCurrentUser(); > > } > > @ProxyFor(value = User.class, locator = UserLocator.class) > public interface UserProxy extends EntityProxy { > public String getName() ; > > } > > public class User { > ... > public String getName() {...} > public User getCurrentUser() {...} > > } > > Is it possible to move getCurrentUser() method to the UserLocator? -- 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.
