diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-08-20 19:19:47 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-20 19:20:09 +0300 |
commit | 72d9cc9ec098952dfdb03708f808da555307e78d (patch) | |
tree | d2e97757e8a1ecdcf25cfec3b066c87a2db6c791 /server/src/com/vaadin/terminal/gwt | |
parent | 0dfdb151913a13e929a65c4dd8b5987c9edd06d5 (diff) | |
download | vaadin-framework-72d9cc9ec098952dfdb03708f808da555307e78d.tar.gz vaadin-framework-72d9cc9ec098952dfdb03708f808da555307e78d.zip |
Add RootProvider for Root selection without custom Application (#8159)
Diffstat (limited to 'server/src/com/vaadin/terminal/gwt')
-rw-r--r-- | server/src/com/vaadin/terminal/gwt/server/ApplicationServlet.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/com/vaadin/terminal/gwt/server/ApplicationServlet.java b/server/src/com/vaadin/terminal/gwt/server/ApplicationServlet.java index 06bc70872d..52885f3fbb 100644 --- a/server/src/com/vaadin/terminal/gwt/server/ApplicationServlet.java +++ b/server/src/com/vaadin/terminal/gwt/server/ApplicationServlet.java @@ -20,6 +20,7 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import com.vaadin.Application; +import com.vaadin.terminal.DefaultRootProvider; import com.vaadin.terminal.gwt.server.ServletPortletHelper.ApplicationClassException; /** @@ -69,6 +70,7 @@ public class ApplicationServlet extends AbstractApplicationServlet { // Creates a new application instance try { final Application application = getApplicationClass().newInstance(); + application.addRootProvider(new DefaultRootProvider()); return application; } catch (final IllegalAccessException e) { |