Thank you everyone for your answer. I was quite aware to that calls were asynchronous and from your replies it seems that it is the only way. Somebody else on another forum, I found a way to use the equivalent of function pointers (That was the other part of the question).
http://stackoverflow.com/questions/122407/whats-the-nearest-substitute-for-a-function-pointer-in-java Tony On Jan 12, 7:58 am, Jason Essington <[email protected]> wrote: > perhaps this will explain it a bit better: > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > -jason > On Jan 10, 2009, at 10:47 AM, AntoineBruguierwrote: > > > > > Hello, > > > I am a newbie with GWT so please bear with me. I would like to write > > some code that fetches some HTTP file. I have read the tutorials but > > they do not quite answer my question. > > > OK, here's my code. It does something but not quite what I want. The > > entry point is the function isInputDataValid(). My problem is that it > > prints "Step 1", then "Step 2", then the content of the HTML page. I > > guess the fetching is done in another thread. That is not what I want, > > since I would like to return a specific boolean depending on the > > content of my page. > > > I guess I could write the code inside the function PrintOut() but that > > is not so good. I am planning to fetch several pages and I would have > > to replicate the code several times. I could also use a mutex system, > > but that I haven't been able to find. Or maybe there's a ready example > > using another approach but I couldn't find it. > > > Please point me toward the right information. I hope I was clear. > > > Thanks, > > Tony --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
