Sunday, May 22, 2011

Re: GWT RequestFactory and Locator

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 <rwi...@gmail.com> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate