/**
* 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
/**
* 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