Adding support for an existing component library

A component library contains JSF components that you can use in your Web applications to create a user interface that connects to a data source. A library definition includes file resources and metadata that can be distributed across your team.

To add support for a component library:

  1. Click

    File | New | Other | Web | Faces Library Definition. Click Next. The Create Faces Library Definition wizard opens. A Faces Definition project can hold multiple library definitions.

  2. In the Library name field, enter the name of the library.

  3. In the Select a jar file section, specify the location of the JAR file that contains the library.

  4. In the Choose the Faces Definitions project where this definition will be stored section, specify where you want to store the library definition. Click Finish.

The Faces Library Definition wizard creates a new metadata file for the library and opens the file in the Faces Library Definition editor.

Once you have added support for the component library, you can configure the library definition in the editor. You will also need to create a property template for library components before you use the components to display data.