Details
-
Story
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
As documented in the Developing JSF Portlets with CDI wiki article, it is now possible to add CDI capabilities to Liferay Portlets. However, as the wiki article describes, there is quite a bit of configuration that must take place in the WEB-INF/web.xml descriptor and WEB-INF/portlet.xml descriptor in order to make it work. Additionally, it requires the Liferay CDI Portlet Bridge JAR dependency. To make matters more complicated, if using JBoss Weld as the CDI implementation on plain servlet containers like Tomcat and Jetty, then it is necessary to add a special <listener> element to WEB-INF/web.xml
It would be great if Liferay IDE provided the ability to enable CDI during the "File->New Portlet" wizard. Perhaps this could be done with a "Liferay CDI Portlet" Eclipse Facet of some kind. When the facet is enabled, then all the manual configuration could take place automatically.