spring icon indicating copy to clipboard operation
spring copied to clipboard

Portlet support for Vaadin Spring

Open vaadin-bot opened this issue 7 years ago • 2 comments

Originally by Sami Ekblad on 2015-05-25 15:24:31 +0300


VaadinSpringPortlet class is needed to provide correct UI provider in portal environments.


Imported from https://dev.vaadin.com/ issue #17987

vaadin-bot avatar Sep 20 '16 12:09 vaadin-bot

Originally by hesara on 2015-08-03 14:35:18 +0300


See the comments in https://vaadin.com/wiki/-/wiki/Main/Vaadin+Spring , including the following suggestion:

"Vaadin Spring 1.0 does not have official portlet support, but the only servlet dependency should be in SpringVaadinServlet. I haven't tested this, but copying the relevant parts from there (initialize and add a SpringUIProvider with a suitable ApplicationContext) should be sufficient to make Vaadin Spring work on portals supporting Spring. Use PortletApplicationContextUtils.getWebApplicationContext(portletContext) there after setting up the context e.g. with a ContextLoaderListener or a com.liferay.portal.kernel.spring.context.PortletContextLoaderListener on Liferay."

The exception reported by some who have tested this seems to be caused by UiInitHandler.getBrowserDetailsUI() returning null, possibly because the UI provider is not registered early enough or at all.

vaadin-bot avatar Sep 20 '16 12:09 vaadin-bot

Is there a current plan as to when this will be added, seeing as it missed the 1.1.0 release? I'm currently trying to migrate a Liferay 6.1 + Vaadin 6 + Spring (non-Boot) app into Liferay 7 + Vaadin 7 + Spring (non-Boot) and based on this ticket, I'm not sure that it's even possible?

If anyone has a sample project they could share in the meantime, I'd be very grateful.

Catchwa avatar Dec 13 '16 00:12 Catchwa