aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/com/vaadin/server/BrowserWindowOpener.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/server/BrowserWindowOpener.java b/server/src/main/java/com/vaadin/server/BrowserWindowOpener.java
index ebc31c06cc..0e59784d76 100644
--- a/server/src/main/java/com/vaadin/server/BrowserWindowOpener.java
+++ b/server/src/main/java/com/vaadin/server/BrowserWindowOpener.java
@@ -70,7 +70,12 @@ public class BrowserWindowOpener extends AbstractExtension {
/**
* Creates a window opener that will open windows containing the provided UI
* class.
- *
+ * <p>
+ * Note: The new UI instance will not work with dependency injection (CDI and
+ * Spring). Use {@link BrowserWindowOpener(String)} instead.
+ * {@code VaadinServlet.getCurrent().getServletContext().getContextPath()} gives
+ * the current context path.
+ *
* @param uiClass
* the UI class that should be opened when the extended component
* is clicked
@@ -82,6 +87,11 @@ public class BrowserWindowOpener extends AbstractExtension {
/**
* Creates a window opener that will open windows containing the provided UI
* using the provided path.
+ * <p>
+ * Note: The new UI instance will not work with dependency injection (CDI
+ * and Spring). Use {@link BrowserWindowOpener(String)} instead.
+ * {@code VaadinServlet.getCurrent().getServletContext().getContextPath()} gives
+ * the current context path.
*
* @param uiClass
* the UI class that should be opened when the extended component