Enabling Faces technology in an existing Web project

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, Standard Faces Components drawer, and Faces Client 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 drawer in the Palette view (lets you define new data sources and drag data components such as JavaBeans™ and relational record lists to the page).
Note: Some Faces Client Components and Client Data have been deprecated and are not recommended for use.
The following have been deprecated and are not recommended for use:
  • Client Data and its associated tooling (such as the Client Data view)
  • Faces Client Components
    • <odc:dataGrid> (Data Grid)
    • <odc:webService> (Web Service)
    • <odc:clientData>
    • <odc:clientBinder>
When a Web application is Faces enabled, it means that one or more JSF facets have been added to the project. There are three ways to enable Faces technology in an existing Web project:

To add a JSF component to a JSP in an existing Web project:

  1. Create a JSP (File > New > Web Page) or open an existing JSP.
  2. Add the Enhanced Faces Components, Standard Faces Components, and Faces Client Components drawers to the Palette:
    1. Right-click the Palette and select Customize.
    2. Select Enhanced Faces Components from the list of drawers and clear the Hide checkbox.
    3. Select Standard Faces Components from the list of drawers and clear the Hide checkbox.
    4. Select Faces Client Components from the list of drawers and clear the Hide checkbox.
  3. Drag a JSF component from one of the Faces drawers on the Palette onto the JSP. A dialog will open to confirm the addition of the JSF resources to the Web project. Click OK.
If you have not previously selected a target runtime for the existing Web project, JSF support will not function correctly. Before you continue to develop your Web application, ensure that you select a target runtime for the project. For more information about specifying target servers for a project, refer to Specifying target servers for J2EE projects.

Feedback