thnx Paul and Jens for ur replies..............actually my problem is, there is client-server communication in my project. and data on the server is fetched and populated into the model which is on client side. due to asynchronous behavior and lack of multithreading, i am not able to hold back execution till model is populated with the fetched data from server. due to which my view is not able to populate the data. hope u understand my problem. so i need some alternative of multithreading so that i can hold the execution till i get response from the server. Thnx for ur replies...
On Jun 9, 1:38 pm, Jens <[email protected]> wrote: > If you really need to wait then you have to put that code that needs to wait > inside the onSuccess method (directly, via a method call or by sending an > event). > > Why do you have to wait? > > In most cases I have something like: > > 1.) disable controls > 2.) make request > 3.) re-enable controls once the request completes. > > And if I have two requests where the second one depends on the first one > I'll do them in a batch request that combines both requests into one. > > -- J. -- 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.
