I think you just have to get used to async programming. Its all about events 
and callbacks in GWT. Any kind of client server communication in GWT is 
async so there are no real alternatives that allows you to block execution. 
A web application lives from asynchronous communication. 

As said before you can only put your code inside the AsyncCallback's 
onSuccess method or send an event once everything is loaded from the server 
and let some instance react to that event in order to populate the view with 
the loaded data. That way the code that needs the data from the server will 
somehow "wait" but you won't block everything in your app.

Feel free to ask if you still have questions or post some more concrete code 
(you can also send me a direct mail if you do not want to expose your 
concrete code on that group). I think you just have to re-sturcture some of 
your code and everything will be fine.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0T51NPW9neIJ.
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