Thursday, September 29, 2011

Re: Request for help with Request Factory and Spring MVC integration

Using Request<EmployeeProxy, Void> persist();

I am getting compilation error saying "Incorrect number of arguments
for type Request<T>; it cannot be parameterized with arguments
<EmployeeProxy, Void>"

And I am calling the persist method as below.

/*MyRequestFactory.java*/
public interface MyRequestFactory extends RequestFactory {
EmployeeRequest employeeRequest();
}

/*SimpleRPC.java*/
private final MyRequestFactory requestFactory =
GWT.create(MyRequestFactory.class);
...
EmployeeRequest request = requestFactory.employeeRequest();
EmployeeProxy newEmployee = request.create(EmployeeProxy.class);
newEmployee.setId(employeeId);
...
Request<Void> createReq = request.persist().using(newEmployee);


Is the above way correct? I got that from the GWT documentation for
Request Factory

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

No comments:

Post a Comment