diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-01-04 19:07:34 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-01-04 19:07:34 +0200 |
commit | b3e2adea172482c7cb682aaa30b51f4900c8bf2a (patch) | |
tree | 2f20f89e3dfb3260fdb7970a1445cd8b176c854c /src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java | |
parent | 8e04f2383db71a33f185636558fee77e98dbd18d (diff) | |
download | vaadin-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.java | 6 |
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"); |