IntelliJ IDEA 2020.3 Help

Jakarta Server Faces (JSF)

Jakarta Server Faces (JSF), formerly known as JavaServer Faces, is a Java specification and MVC framework for building user interfaces for web applications.

IntelliJ IDEA provides the following:

Create a new Java Enterprise project with JSF

Since JSF is part of Jakarta EE (formerly known as Java EE), you can add support for it to any Java Enterprise web application.

  1. From the main menu, select File | New | Project.

  2. In the New Project dialog, select Java Enterprise.

    New Java Enterprise project wizard

    Select Web Application and other necessary settings and click Next to continue.

  3. In the Libraries and Frameworks list, select the Server Faces (JSF) framework under Specifications and click Next.

  4. Enter a name for your project and click Finish.

IntelliJ IDEA creates the default project structure with the javax.faces library as an external dependency. If you specified an application server, IntelliJ IDEA will also create a run configuration to start the server, build and deploy the artifact.

Enable JSF support for an existing Java Enterprise project

If you already have a Java Enterprise web application, you can add the JSF framework as a facet.

  1. In the Project tool window, right-click the necessary module and select Add Framework Support.

  2. Select JSF and choose whether you want to use an existing library, create a new one, download the suggested library files, or configure the library later.

  3. If you want to create the JSF configuration file, select Create faces-config.xml.

  4. Click OK to apply the changes to your project.

Using the navigation diagram to create the navigation rules
Last modified: 29 December 2020