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