As you've written it, loadui2() would be called, but not necessarily
before servicecall1 had completed.

If you want asynchronous calls to happen in sequence, then you have to
start the second call from within the callback of the first one.
Couldn't be explained better than this:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f
<http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f>

Paul

golfdude wrote:
> I have a method as:
>
> method() {
> loadui1();
> loadui2();
> }
>
> loadui1() {
> servicecall1(callback1);
> }
>
> loadui2() {
> servicecall2(callback2);
> }
>
> loadui2() is never called. But in these scenarios, I am wondering how
> one would design so that callback1 knows that there needs to be a call
> to loadui2 ? Or am I missing some easy feature in gwt ?
>
>
> Thanks
>
> gd
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to