Here's a list of the most noteworthy things in the RAP 2.3 M1 milestone build which is available for download since January 31, 2014.
Entrypoints in RAP are registered with a servlet path (e.g. “/example”). When deployed in a servlet container, every web application also has a context path. For example, a WAR file named “myapp.war” will lead to the context path “/myapp” This results in a URL like the following:
http://example.com/myapp/exampleIt may be desirable to make the default entrypoint of an application directly available at the application's base URL:
http://example.com/myapp/
To enable this pattern, entry points can now also be registered at the root path (“/”):
public class ExampleApplication implements ApplicationConfiguration {
public void configure( Application application ) {
application.addEntryPoint( "/", ExampleEntryPoint.class, null );
}
}
Please note that for RWT standalone, you should map the RWT servlet to the empty string (the path “/” is a special case in the servlet spec, it identifies the so-called global servlet).
<servlet-mapping>
<servlet-name>rwtServlet</servlet-name>
<url-pattern></url-pattern>
</servlet-mapping>
Since RAP 1.5, the RAP server required that the initial request to an application was made using the HTTP GET method. This request will be answered with the initial HTML page that loads the application. POST requests were reserved for Ajax calls that update the client's UI. Some users have reported that in certain restricted environments, it can be helpful to be able to start a RAP application with a POST request.
Therefore we changed our policy and allow for RAP applications being accessed with a POST request again. However, please note that POST parameters sent with the initial request are not yet available to application code.
It seems that WAR files are still the most popular deployment option for RAP applications. In order to provide an easier way of deploying RAP applications, we've started a collaboration with the Virgo project to provide a lightweight RAP server runtime based on Virgo nano. This OSGi container is equipped with all RAP bundles required to run your application.
This container will soon be available on the Virgo download pages. If you're interested, you can already try out the latest build that is based on RAP 2.3 M1. To run your application on it, follow these steps:
$ unzip virgo-nano-rap-3.7.0.CI-2014-01-30_19-33-17.zip $ cd virgo-nano-rap-3.7.0.CI-2014-01-30_19-33-17 $ cp ~/org.eclipse.rap.demo.controls_2.3.0.20131210-1030.jar pickup $ bin/startup.sh
This list shows all bugs that have been fixed for this milestone build.
The above features are just the ones that are new since the last milestone build. Summaries for earlier builds:
To assist you with the migration from RAP 2.x (or 1.x) to 3.0, we provide a migration guide.