Thank you Thomas, but I can not, please see where this error:
I created a class MyRpcRequestBuilder:
public class MyRpcRequestBuilder extends RpcRequestBuilder {
public MyRpcRequestBuilder() {
// Do something here
}
public void doSetCallback(RequestBuilder rb, RequestCallback callback) {
// Do something here
}
public void doFinish(RequestBuilder rb) {
// Do something here
}
}
Interface xxxServiceAsync:
public interface xxxServiceAsync {
public RequestBuilder method(String variable, AsyncCallback<Void>
callback);
}
And in class I try to use the feature do so:
xxxServiceAsync Service = GWT.create (xxxService.class);
RpcRequestBuilder theBuilder = new MyRpcRequestBuilder();
...
try {
service.metodo (variable, new AsyncCallback<Void>() {
public void onSuccess(Void result) {
// Do something here
}
public void onFailure (Throwable caught) {
// Do something here
}
}).send();
} catch (Exception ex) {
Window.alert (ex.getMessage ());
}
The error is: callback can not be null
And one more question doSetCallback the method used to when he
initiates the request or have to use another?
--
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.