Open Browser Popup in Liferay via Vaadin

匆匆过客 提交于 2019-12-11 11:05:47

问题


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?

来源:https://stackoverflow.com/questions/23919487/open-browser-popup-in-liferay-via-vaadin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!