6. Communicating with Your Server

Remote Procedure Calls (RPC) can bring client- and server-side code together and therefore are one of GWT’s more potent tools. In this chapter we’ll analyze how RPC works and show several patterns of its usage, including live suggestions, client-side data prevalidation, and connecting to Enterprise Java Beans (EJB). We shall even be providing a more complicated example of MVP, with an RPC-enabled composite widget.

Introduction to RPC

RPC enables GWT programmers to work almost as if the client- and server-side code resided at the same machine, making the connection practically invisible. There are some differences, however. For example, server-side code can use any class and package in the Java repertory, but ...

Get Essential GWT: Building for the Web with Google Web Toolkit 2 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.