You can generate a Liferay Faces application without having to create your own folder structure and descriptor files manually using Liferay Dev 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 Dev Studio. Open your Dev 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.
Assign your JSF project a name, build framework (Gradle or Maven), and Component Suite. You have five component suites to choose from:
- JSF Standard
- Liferay Faces Alloy
Click Finish to generate your Liferay JSF project.
You’ve generated a Liferay JSF project using Dev Studio! The project you generated contains a simple portlet that you can customize.
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 Dev Studio!