Hi everyone,
I am new to GWT and currently working with GWT 1.4.61. To let my
widgets communicate with the server I use com.google.gwt.http.client
package.
Here is my code
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
RequestCallback callback = new RequestCallback() {
// handle any error
public void onError(com.google.gwt.http.client.Request
request, Throwable e) {
// Handle error
}
// handle successful server response
public void onResponseReceived
(com.google.gwt.http.client.Request request, Response response) {
// Handle response
}
};
builder.sendRequest(null, callback);
Test scenario
==========
send a request and while waiting for response I leave to another page
(i.e. before the response returns, I can do this by setting a break
point hanging the server code)
I am facing strange behavior with firefox.
FireFox2
======
The onError is called with the following exception
java.lang.RuntimeException: Unable to read XmlHttpRequest.status;
likely causes are a networking error or bad cross-domain request.
Please see https://bugzilla.mozilla.org/show_bug.cgi?id=238559 for
more details
FireFox3
======
The onResponseReceived is called with response status = 0.
Expected
========
I expect that the callback method is never called in such a case which
i think happens in IE.
Any idea why the callback method is called?
Feedback would be highly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---