Ugh, I'm an idiot. My problem was I was referencing 127.0.0.1 in code
but the URL in the browser was localhost... stupid firebug didn't tell
me there was an error with the request/response mechanism.

Now things are working as expected.

On Nov 30, 4:16 pm, Jeff Larsen <larse...@gmail.com> wrote:
> 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