Yes,since u have called loadui2() in method(),that will happen,,,but your
telling it is never called,so i thnk there is some problem in your
callback1,so need to check that,,and you can also call loadui2()  in
callback1 for better sequence

On 10/28/09, Paul Robinson <[email protected]> wrote:
>
>
> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to