You still haven't embraced asynchronous behaviour.
(1) Display a message in the UI that says you're loading data
(2) Make the call to the server to ask for data
(3) In the callback, build whatever UI structures you require, and replace the
"loading" message with the real thing
Paul
On 17/06/11 11:01, ankit wrote:
thnks 4 all ur replies...but my problem is combobox model is loading
data from the server and as u know GWT server connection is all
asynchronous ....so what should i do so that data must load on the
model before viewing on to the UI. is there any way i can halt the
execution or know that data has come from the Server.
On Jun 9, 8:04 pm, Ashton Thomas<[email protected]> wrote:
Have to agree that you need to change your mindset and fully embrace
asynchronous (get used to events and callbacks:)
However, here is a good article on creating parallel async calls when
you can't do it in one call (for whatever reason)
http://www.summa-tech.com/blog/2010/11/29/parallel-asynchronous-calls...
GWT/The Web really pushes this whole async-ness (for a reason)
On Jun 9, 6:45 am, Paul Robinson<[email protected]> wrote:
For a good explanation on how asynchronous coding works, check out the great
GWT beer
example:http://groups.google.com/group/google-web-toolkit/browse_frm/thread/f...
HTH
Paul
--
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.