Creating Faces enabled Web projects

Faces enabled Web projects hold all of the Web resources that are created and used when developing a Faces Web application. Though there are several Web technologies that you can work with to create dynamic Web applications, JavaServer Faces (JSF) gives you the ability to create form-based applications easily. Several views allow you to easily implement JavaServer Faces technology in your Web application: the Page Data view (shows the defined data sources), the Enhanced Faces Components drawer and Standard Faces Components drawer in the Palette view (lets you easily add user interface (UI) components and define data sources together for the page), and the Data and Services drawer in the Palette view (lets you define new data sources and drag data components such as JavaBeans™ and JPA data to the page).

To create a Faces enabled dynamic Web project:

  1. In the Enterprise Explorer view, right-click and select

    New | Project | Dynamic Web Project | Next. The New Dynamic Web Project wizard opens.

  2. In the Project name field, enter the name of your Web project.

  3. Select a Target Runtime from the drop down list.

    Note: This field will be disabled if a target runtime had been previously set. To enable this field, you can do one of the following:

    • Specify a new EAR Project Name then select a

      Target Runtime.

    • Select an existing EAR project from the list that uses the target runtime that you want to use.

  4. In the Configurations drop down list, select

    JavaServer Faces IBM Enhanced Project. The project configuration automatically selects the facets required by your Faces project.

    Note: If you do not see the JavaServer Faces IBM Enhanced Project option, click

    Modify. On the Project Facets page of the wizard, select the

    JavaServer Faces (IBM Compatibility),

    JavaServer Faces (IBM Enhanced) and

    JavaServer Faces project Facets. The wizard will prompt you to select any other required dependent facets. JavaServer Faces (IBM Enhanced) components contain all of the IBM® JSF Widget Library (JWL) extended tags. For more information on Faces Facets, refer to JSF Facets. Click OK.

  5. Click Finish.

For more information on creating a dynamic Web project, refer to Creating dynamic Web projects.

 

Related concepts

What is JavaServer Faces?