Use code like:
RunAsyncCallback getResourceItems = new RunAsyncCallback() {
@Override
public void onFailure(Throwable reason) {
GWT.log(reason.getMessage());
}
@Override
public void onSuccess() {
System.out.println(THIRD);
You shouldn't use this solution. GWT.runAsync is used to create a code split
point and not to execute things asynchronously. As far as I know these code
split points act synchronously in dev mode but asynchronous in
production/compiled mode. I think this is because in dev mode there are no
.js
On Tue, Oct 4, 2011 at 6:37 PM, Jens jens.nehlme...@gmail.com wrote:
You shouldn't use this solution. GWT.runAsync is used to create a code
split point and not to execute things asynchronously.
I don't want to execute things asynchronously. I want to execute things *
synchronously*.
As far
Yeah ok maybe I missunderstood your solution example. But your general idea
is correct:
1.) do the first async request
2.) in the callbacks onSuccess method of the first request execute the
second async request.
So basically you are chaining async requests. Thats the way to go, or try to
fix
On Tue, Oct 4, 2011 at 7:53 PM, Jens jens.nehlme...@gmail.com wrote:
Yeah ok maybe I missunderstood your solution example. But your general idea
is correct:
1.) do the first async request
2.) in the callbacks onSuccess method of the first request execute the
second async request.
So