Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "RAP/WebClient"
(→General Information) |
|||
Line 2: | Line 2: | ||
The web client is the default client delivered by the RAP server if an application URL is entered into a web browser. | The web client is the default client delivered by the RAP server if an application URL is entered into a web browser. | ||
+ | |||
+ | As of RAP 1.5, the following browsers are supported: | ||
+ | |||
+ | *Internet Explorer 7+ | ||
+ | *Google Chrome 7+ | ||
+ | *Firefox 3.5+ | ||
+ | *Safari 4+ | ||
+ | *Opera 10+ | ||
+ | *iOs 5+ (Safari) | ||
+ | *Android 3+ (stock browser, limited) | ||
+ | |||
+ | The browser must have javascript enabled and be allowed to dispatch XMLHttpRequests. No other plug-ins (like flash) are required. RAP 1.4 was the last version to support Internet Explorer 6. Some advanced visual effects like shadows may not work on all of the older browsers. The best performance can be achieved with Chrome and Safari, while Internet Explorer 7 and the Android stock browser are the slowest. | ||
= Server API = | = Server API = |
Revision as of 07:01, 24 October 2012
General Information
The web client is the default client delivered by the RAP server if an application URL is entered into a web browser.
As of RAP 1.5, the following browsers are supported:
- Internet Explorer 7+
- Google Chrome 7+
- Firefox 3.5+
- Safari 4+
- Opera 10+
- iOs 5+ (Safari)
- Android 3+ (stock browser, limited)
The browser must have javascript enabled and be allowed to dispatch XMLHttpRequests. No other plug-ins (like flash) are required. RAP 1.4 was the last version to support Internet Explorer 6. Some advanced visual effects like shadows may not work on all of the older browsers. The best performance can be achieved with Chrome and Safari, while Internet Explorer 7 and the Android stock browser are the slowest.
Server API
The web client is represented on the server by the class org.eclipse.rap.rwt.client.WebClient
. (Since RAP 2.0.) An instance can be obtained via org.eclipse.rap.rwt.RWT#getClient()
. Besides the methods specified by the org.eclipse.rap.rwt.client.Client
interface, it also provides a number of constants that may be used in the configuration map of an application entrypoint.
The WebClient#getService()
method can be used to obtain the follwing supported services:
org.eclipse.rap.rwt.client.service.JavaScriptExecuter
org.eclipse.rap.rwt.client.service.BrowserHistory
Diferent clients may support different services. If you target multiple clients, check for null before using a service.