Hello,
There is some I don't understand using ServiceLayer stuff.
My sample :
I have a bean called Application and some already existing various libs to handle this (persist save etc...).
So I have created an interface :
@ProxyFor(Application.class)
public interface ApplicationProxy extends EntityProxy
Then the RequestContext
@ServiceName(value = "bla.bla.ApplicationService",
locator = "bla.bla.ApplicationServiceLocator")
interface ApplicationRequest extends RequestContext
InstanceRequest<ApplicationProxy, Void> save();
InstanceRequest<ApplicationProxy, Void> persist();
Note the bla.bla.ApplicationService is the interface to the implementation which handle CRUD and other stuff and has methods :
Application save( Application application )
Application save( Application application )
bla.bla.ApplicationServiceLocator is in charge of returning the implementation (in my case tru Guice).
So here I was thinking everything was correct :-).
But we running (in dev mode), gwt complains with :
[ERROR] 18 janv. 2011 19:46:15 xxxx.webapp.ui.client.request.application.ApplicationRequest com.google.gwt.requestfactory.shared.InstanceRequest persist()
[ERROR] GRAVE: Could not find matching method in xxxx.model.services.application.ApplicationService.
[ERROR] Possible matches:
[ERROR] xxx.model.Application persist(xxxx.model.Application )
[ERROR]
[ERROR] 18 janv. 2011 19:46:15 xxxx.webapp.ui.client.request.application.ApplicationRequest com.google.gwt.requestfactory.shared.InstanceRequest save()
[ERROR] GRAVE: Could not find matching method in cxxx.model.services.application.ApplicationService.
[ERROR] Possible matches:
[ERROR] xxxx.model.Application save(xxxx.model.Application )
[ERROR]
[ERROR] 18 janv. 2011 19:46:15 com.google.gwt.requestfactory.server.ServiceLayerDecorator die
[ERROR] GRAVE: The RequestContext type xxxx.webapp.ui.client.request.application.ApplicationRequest did not pass validation
[ERROR] 18 janv. 2011 19:46:15 com.google.gwt.requestfactory.server.RequestFactoryServlet doPost
Thanks in advance,