Announcement: Liferay Faces Archetypes for Liferay Portal CE 7.3

Includes new versions of the com.liferay.faces.bridge.ext.jar and com.liferay.faces.alloy.jar dependencies

Note: This is a follow-up to the post titled Liferay Faces Maintenance Release (December 2019).

 

On April 21, 2020 released JSF portlet archetypes that are designed for use with Liferay Portal CE 7.3. The home page of   https://www.liferayfaces.org now shows "7.3" as the default dropdown menu for selecting archetypes and viewing dependencies.

 

For those of you that use Liferay Faces Alloy, please note that we also released com.liferay.faces.alloy-4.0.0.jar in order to support AlloyUI 3.1 (the version that comes bundled with Liferay Portal CE 7.3). The archetype for Liferay Portal 7.3 + JSF 2.2 + Liferay Faces Alloy has been updated to use version com.liferay.faces.alloy-4.0.0.jar as well.

 

In addition, the Liferay Faces Version Scheme has been updated so that com.liferay.faces.bridge.ext-6.0.0.jar now targets Liferay Portal CE / DXP 7.3+

 

At the time of this writing, the version scheme does not yet reflect com.liferay.faces.alloy-4.0.0.jar but we hope to get that fixed soon.

 

Many thanks to everyone in the Liferay community that has helped make JSF (Liferay Faces) be such a great development option for Liferay portlets.

Blogs

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?

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