You can generate a Liferay Faces application without having to create your own folder structure and descriptor files manually using Liferay Developer Studio. If you’re interested in creating the structure of a JSF application manually or if you want to examine a basic JSF application structure, visit the Creating a JSF Project Manually tutorial.
In this tutorial, you’ll generate an example JSF project using Liferay Developer Studio. Open your Developer Studio instance to get started.
-
Navigate to File → New → Project…. This opens a new project wizard.
-
Select the Liferay project and choose Liferay JSF Project from the listed subprojects. Then click Next.
Figure 1: Choose the *Liferay JSF Project* option to begin creating a JSF project in Developer Studio.
-
Assign your JSF project a name, build framework (Gradle or Maven), and Component Suite. You have five component suites to choose from:
- ICEFaces
- JSF Standard
- Liferay Faces Alloy
- PrimeFaces
- RichFaces
Figure 2: Choose your preferred options for your JSF project.
-
Click Finish to generate your Liferay JSF project.
You’ve generated a Liferay JSF project using Developer Studio! The project you generated contains a simple portlet that you can customize.
Figure 3: The generated JSF portlet project displays basic build information.
To deploy the new JSF project to your Liferay DXP instance, drag and drop it onto the Liferay server.
Fantastic! You’re now able to quickly generate your Liferay JSF project using Liferay Developer Studio!