diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-03 15:24:46 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-03 15:24:46 +0300 |
commit | 156a77ecfed2c4696b8144a25770e00ba3df1893 (patch) | |
tree | 10f1ae698b5438641c915b0b498b2a27e907d6e7 /server | |
parent | b6e762dc8408b607568919f518ab2e2f74df7010 (diff) | |
parent | 633f4141570f52fc78f4b0b48017c4c246cdf399 (diff) | |
download | vaadin-framework-156a77ecfed2c4696b8144a25770e00ba3df1893.tar.gz vaadin-framework-156a77ecfed2c4696b8144a25770e00ba3df1893.zip |
Merge branch 'master' into layoutgraph
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/Application.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/server/src/com/vaadin/Application.java b/server/src/com/vaadin/Application.java index 2af3c6a59f..f368257ecd 100644 --- a/server/src/com/vaadin/Application.java +++ b/server/src/com/vaadin/Application.java @@ -239,6 +239,25 @@ public class Application implements Terminal.ErrorListener, Serializable { * This implementation simulates the way of finding a window for a * request by extracting a window name from the requested path and * passes that name to {@link #getWindow(String)}. + * <p> + * {@inheritDoc} + */ + @Override + public UI getUIForRequest(WrappedRequest request) { + UI uiInstance = getUIInstance(request); + if (uiInstance.getUIId() == -1) { + // Not initialized -> Let go through createUIInstance to make it + // initialized + return null; + } else { + return uiInstance; + } + } + + /** + * This implementation simulates the way of finding a window for a + * request by extracting a window name from the requested path and + * passes that name to {@link #getWindow(String)}. * * <p> * {@inheritDoc} |