So I've been pounding my head against the wall trying to figure out
what will be a good way to integrate GWT 2.1.1 AutoBeans with Spring
3's REST implementation using RequestBuilder.

There is a lot of really good stuff in the new REST implementation
with Spring 3 but i'm having real trouble getting
RequestBuilder.getText() to return anything other than "" when going
through Spring. Was wondering if anyone has had any experience getting
a spring Rest implementation up and running with RequestBuilder.

My googlefoo is failing me on finding an example that works how I
would prefer, which would look something like


RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL);

builder.sendRequest(something,
                rb.setCallback(new RequestCallback() {

      @Override
      public void onResponseReceived(Request request, Response
response) {

        String text = response.getText();
        //Do cool stuff with AutoBean


      }

      @Override
      public void onError(Request request, Throwable exception) {

                                label.setText("Error: " + 
exception.getMessage());
      }

I can get straight up servlets to return text to my response, but
going through Spring I just get an empty String.

Any help would be greatly appreciated, or maybe I'm doing this
completely wrong and someone can point me in the right direction.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to