Hi Jake
My RESTRequestCallback is just a wrapper for now. Here is the code:
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.Response;
public interface RESTRequestCallback {
void restRequestCallback(int status, String body);
}
This may need to change in the future, but so far, I have yet to need
any added functionality. My callback method is used typically like so:
public void restRequestCallback(int status, String body) {
if (status == 200) {
// projects = new ProjectsAndTasks(body);
// populateTable();
} else {
// Window.alert("Error: "+ status);
}
// put cleanup stuff here if needed
}
On Mon, Nov 17, 2008 at 4:04 AM, jake H <[EMAIL PROTECTED]> wrote:
>
> ty a lot !!
> One question about doDelete.
> What am i supposed to write for 'RESTRequestCallback restCallback'
>
>
> private class RESTRequestCallback implements RequestCallback {
> public void onError(Request request, Throwable exception) {
> }
>
> public void onResponseReceived(Request request, Response response)
> {
> }
> }
>
>
>
> as usual??
>
> ty.
> >
>
--
Jim Freeze
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---