Open Browser Popup in Liferay via Vaadin

2019-08-02 03:53发布

问题:

using Vaadin 7.1 and Liferay 6.1 I try to open a new UI (in the same session) in a new browser window using com.vaadin.server.BrowserWindowOpener:

Button button = new Button("button");
BrowserWindowOpener windowOpener = new BrowserWindowOpener(OverviewWindow.class);
windowOpener.extend(button);

Where OverviewWindow extends UI is a trivial custom UI.

In standalone use (i.e. without Liferay) this works fine, but in Liferay the popup opens and displays "Request was not handled by any registered handler." (HTTP-Response-Code: 404).

I tried many things - among others to generate the url via com.liferay.portlet.PortletURLFactoryUtil.create(PortletRequest, String, long, String) - but nothing works.

Has anyone any suggestions?