Sunday, June 5, 2011

RequestFactory sending EntityProxy in request parameters

Hello,
I have a problem using request factory while sending a user proxy
object in the request method parameters.

My code for the UserProxy:

@ProxyFor(value = User.class, locator = UserLocator.class)
public interface UserProxy extends EntityProxy {
...
}

@Service(value = UserDao.class, locator = MyServiceLocator.class)
public interface UserRequest extends RequestContext {
...
}

And for the StuffProxy:

@ProxyFor(value = Stuff.class, locator = StuffLocator.class)
public interface StuffProxy extends EntityProxy {
...
}

@Service(value = StuffDao.class, locator = MyServiceLocator.class)
public interface StuffRequest extends RequestContext {
Request<List<StufftProxy>> getStuff(UserProxy user);
}

When i call getStuff() i get

2011-06-05 12:07:52
com.google.gwt.requestfactory.server.ServiceLayerDecorator die
SEVERE: Could not find static method with a single parameter of a key
type

It seems that no UserLocator is used when exiting from the server side
getStuff method.
Passing a null object works fine.

What can be the problem?

--
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