aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-01-04 19:07:34 +0200
committerLeif Åstrand <leif@vaadin.com>2012-01-04 19:07:34 +0200
commitb3e2adea172482c7cb682aaa30b51f4900c8bf2a (patch)
tree2f20f89e3dfb3260fdb7970a1445cd8b176c854c /src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
parent8e04f2383db71a33f185636558fee77e98dbd18d (diff)
downloadvaadin-framework-b3e2adea172482c7cb682aaa30b51f4900c8bf2a.tar.gz
vaadin-framework-b3e2adea172482c7cb682aaa30b51f4900c8bf2a.zip
Pass initial request details through the browser (#8232)
By passing the details through the browser, we don't need any state mapped to a rootId that could be sent multiple times by caching in the browser Old test updated to test for this
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java')
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
index 70d7436e1d..ca79dcfc44 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
@@ -1986,11 +1986,9 @@ public abstract class AbstractCommunicationManager implements
// shortly, and we should send the initial UIDL
boolean sendUIDL = Root.getCurrentRoot() == null;
- // TODO Handle npe if id has not been registered
- CombinedRequest combinedRequest = application
- .getCombinedRequest(request);
-
try {
+ CombinedRequest combinedRequest = new CombinedRequest(request);
+
Root root = application.getRootForRequest(combinedRequest);
response.setContentType("application/json; charset=UTF-8");