summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/terminal/gwt
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-20 19:19:47 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-20 19:20:09 +0300
commit72d9cc9ec098952dfdb03708f808da555307e78d (patch)
treed2e97757e8a1ecdcf25cfec3b066c87a2db6c791 /server/src/com/vaadin/terminal/gwt
parent0dfdb151913a13e929a65c4dd8b5987c9edd06d5 (diff)
downloadvaadin-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.java2
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) {