In the second milestone of RAP v2.0 we introduced a new Client API. It allows as to distinguish between different clients (web client, native android client…) and handle their specific capabilities. We added a service provider interface
Client that can be acquired using the new method
RWT.getClient(). Client implementations can provide different services.
WebClient. For those of you, that are using the old internal
JSExecutor class, you have to replace the old static call:
JSExecutor.executeJS( script );
with the new service call:
Please note that the
null check is obligatory, because only the
These changes are currently available only in the latest nightly RAP build and will be part of RAP v2.0M3.
BrowserHistory has been converted to a client service too.