evanite
unread,Jul 3, 2009, 2:13:04 PM7/3/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit Applications
Hi GTW Apps forum,
in the book's Hangman example there is following snippet of code, that
is used to load the movies.txt file, and when done, start the game:
//load words
HTTPRequest.asyncGet("movies.txt", new ResponseTextHandler(){
public void onCompletion(String responseText) {
words = responseText.split("\n");
startGame();
}
});
From version 1.5 on it isn't recommended to use HTTPRequest.asynGet()
anymore, but to use the RequestBuilder class in the
com.google.gwt.http.client package instead. I tried to work with it,
but just didn't make it to replace the existing code with it.
My Java surely is a bit rusty (I coded .NET for some time now), but
really want to come back in order to use the fine GWT (which I came
across some weeks before) in future.
Are there any coding geeks out there that can supply some smart code
that replaces the snippet above?
Cheers
Alexander