Liferay Faces

Liferay Faces is an open source umbrella project that provides support for the JavaServer™ Faces (JSF) standard in webapp and portlet projects.

[Issue Tracker] [Forums] [Tutorials]

Twitter Feed

Portlet Café

Portlet Café

Episode 1: Developing a New JSF Portlet
# Liferay Portal 7.4 (Portlet 3.0) + JSF 2.3 + JSF Standard
mvn archetype:generate \
-DarchetypeGroupId=com.liferay.faces.archetype \
-DarchetypeArtifactId=com.liferay.faces.archetype.jsf.portlet \
-DarchetypeVersion=8.0.0 \
-DgroupId=com.mycompany \
-DartifactId=com.mycompany.my.jsf.portlet
mvn clean package

  • Supported for convenient builds with Maven (via the -P thin profile).
  • Supported for deployment to Liferay CE/DXP 7.1, 7.2, and 7.3.
  • Supported for ADF Faces, BootsFaces, ButterFaces, Liferay Faces Alloy, PrimeFaces, and RichFaces. The Liferay Faces Alloy and PrimeFaces JARs can be deployed as OSGi modules in $LIFERAY_HOME/osgi/modules, but all other component suite JARs must remain embedded in WEB-INF/lib since they are not distributed as valid OSGi bundles.
  • Unsupported for convenient builds with Gradle (FACES-3599).
  • Unsupported for deployment to Liferay CE/DXP 7.0 (FACES-3600).
  • Unsupported for deployment to Liferay Portal EE 6.2.
  • Unsupported for ICEfaces portlets (FACES-3567).
  • Supported for convenient builds with Maven (via the -P thin,cdi profiles).
  • Supported for deployment to Liferay CE/DXP 7.1, 7.2, and 7.3.
  • Unsupported for convenient builds with Gradle (FACES-3599).
  • Unsupported for deployment to Liferay Portal EE 6.2 and CE/DXP 7.0.
  • Supported for convenient builds with Maven (via the -P cdi profile).
  • Supported for deployment to Liferay CE/DXP 7.2 and 7.3.
  • Unsupported for convenient builds with Gradle (FACES-3599).
  • Unsupported for deployment to Liferay Portal EE 6.2 and CE/DXP 7.0, and 7.1.

<dependencies>
	<dependency>
		<groupId>javax.enterprise</groupId>
		<artifactId>cdi-api</artifactId>
		<version>1.2</version>
		<scope>provided</scope>
	</dependency>
	<dependency>
		<groupId>javax.faces</groupId>
		<artifactId>javax.faces-api</artifactId>
		<version>2.3</version>
		<scope>provided</scope>
	</dependency>
	<dependency>
		<groupId>org.glassfish</groupId>
		<artifactId>javax.faces</artifactId>
		<version>2.3.9</version>
		<scope>runtime</scope>
	</dependency>
	<dependency>
		<groupId>com.liferay.faces</groupId>
		<artifactId>com.liferay.faces.bridge.ext</artifactId>
		<version>8.0.0</version>
		<scope>runtime</scope>
	</dependency>
	<dependency>
		<groupId>com.liferay.faces</groupId>
		<artifactId>com.liferay.faces.bridge.impl</artifactId>
		<version>6.0.0</version>
		<scope>runtime</scope>
	</dependency>
	<dependency>
		<groupId>log4j</groupId>
		<artifactId>log4j</artifactId>
		<version>1.2.17</version>
		<scope>runtime</scope>
	</dependency>
</dependencies>

Version Scheme

Version Scheme

The Liferay Faces project consists of a variety of modules and demos that are on independent release schedules. For more information, refer to the Liferay Faces Version Scheme in the official documentation.