9.4. Constructing your first editor

In this section, we’re going to implement a simple editor that could receive input from a user and send that input to a domain object. You can find the full source code for this in com.manning.gwtia.ch09.client.widgets.

Let’s consider the steps you have to perform when you define an editor. First, as you saw at the end of the last section, you have to specify the domain object that it will edit. Because editors could support both local and remote domain objects, you must decide if the object supported by the editor will be an ordinary bean or an EntityProxy.

Once you’ve declared the domain object and the proxy if required, you can build the editor. The fastest way to construct an object of the type editor ...

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.