9.7. Accessing the RequestContext

Editors that are used with a RequestFactoryEditorDriver can be provided the RequestContext currently used in the edit session by implementing the interface HasRequestContext. The benefit is that you don’t have to pass the RequestContext to the subeditors manually. Instead, the RequestFactoryEditorDriver calls the setRequestContext method that you provided by implementing the HasRequestContext interface and passes the RequestContext used in the edit operation. You can then use the RequestContext to create new proxy classes or check if changes have been done to the proxies that are mutable under this context. Listing 9.13 shows sample code of how to define a HasRequestEditor. In this code we define the EmployeeEditor ...

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.