Developing JavaServer Faces (JSF) Web Applications

Context

Switching from pure JSP and Servlet technology to JSF development is not difficult. Developing Web UI using the JSF technology involves two aspects:

  • Writing the Web pages - You develop the JSF pages in standard JSP files. This task involves the standard description of the page layout, which can be handled by a Web designer, for example.

    More information: Creating the JSF UI Components .

  • Developing the underlying logic - This involves developing Java classes called managed beans, which will provide the underlying logic of the Web pages. This can be handled by a Java developer.

    More information: Managed Beans .

The rest of the topics in this section describe in parallel both aspects of creating the corresponding JSF component.

Procedure


  1. Create a Dynamic Web Project to wrap the JSP application.

    More information: Creating Dynamic Web Projects .

  2. Develop all required JSF components.

    More information:

    Creating the JSF UI Components

    Managed Beans

    faces-config.xml

  3. Create an Enterprise Application Project and reference the Dynamic Web Project containing the JSF application.

    More information: Creating Enterprise Application Projects .

  4. Deploy the Enterprise Application Project.

    More information: Building, Publishing and Removing Published Java EE Applications