Chris Huff 3 Years Ago - Edited Hi Neil. Why are we still on JSF 2.2? Liferay has been stuck on this version for MANY years. When are we going to 2.3 or 3.x, etc.? And can we use CDI @Named beans in a Liferay 7.3 Portlet? Please sign in to reply. Reply as... Cancel Neil Griffin Chris Huff 3 Years Ago Hi Chris, I recently answered some very similar questions in the following forum thread: https://liferay.dev/forums/-/message_boards/message/119293606#_com_liferay_message_boards_web_portlet_MBPortlet_message_119296478 Regarding CDI @Named beans, this has been supported for many years. See this demo: https://github.com/liferay/liferay-faces-bridge-impl/tree/4.x/demo/jsf-cdi-applicant-portlet However, we have only been able to support CDI @Named beans by including WEB-INF/weld-servlet.jar I am happy to report that Liferay 7.3, 7.2, and 7.2 now contain weld-osgi-bundle via OSGi+CDI integration: https://docs.osgi.org/specification/osgi.enterprise/7.0.0/service.cdi.html This means that it is possible to have a "skinny CDI" type of WAR module. However, it's not fully supported for JSF yet -- we are still working on JSF support for that. Actually I am working on that today. I recommend that you "watch" the following issue in JIRA for updates: https://issues.liferay.com/browse/FACES-3024 Kind Regards, Neil Please sign in to reply. Reply as... Cancel
Neil Griffin Chris Huff 3 Years Ago Hi Chris, I recently answered some very similar questions in the following forum thread: https://liferay.dev/forums/-/message_boards/message/119293606#_com_liferay_message_boards_web_portlet_MBPortlet_message_119296478 Regarding CDI @Named beans, this has been supported for many years. See this demo: https://github.com/liferay/liferay-faces-bridge-impl/tree/4.x/demo/jsf-cdi-applicant-portlet However, we have only been able to support CDI @Named beans by including WEB-INF/weld-servlet.jar I am happy to report that Liferay 7.3, 7.2, and 7.2 now contain weld-osgi-bundle via OSGi+CDI integration: https://docs.osgi.org/specification/osgi.enterprise/7.0.0/service.cdi.html This means that it is possible to have a "skinny CDI" type of WAR module. However, it's not fully supported for JSF yet -- we are still working on JSF support for that. Actually I am working on that today. I recommend that you "watch" the following issue in JIRA for updates: https://issues.liferay.com/browse/FACES-3024 Kind Regards, Neil Please sign in to reply. Reply as... Cancel