12.3. Posting data with RequestBuilder

Now that you understand the basics of using RequestBuilder, let’s explore how you can use it to use the HTTP POST method to send data to the server. We’ll use the same example that we did in the previous section with some minor modifications. Listing 12.3 reproduces that example but without the code for the callback. If you’re following along, you can copy the callback code from listing 12.2.

Listing 12.3. Using RequestBuilder to POST data to the server

The example in listing 12.3 is relatively unchanged from the example we used in the previous section with the exception that you’re constructing RequestBuilder ...

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.