12.2. Using RequestBuilder

In GWT, the RequestBuilder is an abstraction built on top of the JavaScript XMLHttpRequest object. This abstraction makes the underlying JavaScript API somewhat easier to work with, not to mention that it allows us to use Java idioms.

To start, you should create a new GWT project, the name and package of which don’t matter. We’ll then do all of our coding in the entry point so that we can focus only on the tool. In previous chapters we explained how to do this both with and without the Google Plugin for Eclipse. The method you use to create your project doesn’t matter.

As discussed previously in this chapter, you need to abide by the same-origin policy that your browser will enforce. So once you’ve created a new ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.