-
Select faces-config.xml in the Project Explorer of the J2EE perspective.
The JSF Application Configuration editor opens.
-
Select the Component tab of the
editor.
The Faces Configuration Components page appears.
-
Expand the Components section.
Defined components display in the components list.
-
Click Add.
A new component
x
is added to the list and General,
Facets, Attributes, and Properties sections appear.
-
(Optional) Change the default name to a unique, descriptive name
in the Display Name field of the General section.
-
(Optional) Type a description of the component in the Description field.
-
Type the type in the Component Type
field.
-
Click Browse.
The Select Type dialog box appears.
-
Type the first letter of the type you want to use in the Select entries field.
A list of available types beginning with the letter you typed
appears in the Matching types list.
-
Select the type that you want to use and click OK.
-
Click Add in the Facets section.
The Add/Edit Facet dialog box appears.
-
Type a facet name, display name, and description and click Finish.
-
Click Add in the Attributes section.
The Add/Edit Attribute dialog box appears.
-
Type a unique, descriptive name in the Attribute
Name field.
-
Click Browse.
-
Type the first letter of the type you want to use in the Select entries field.
A list of available types beginning with the letter you typed
appears in the Matching types list.
-
Select the type that you want to use and click OK.
-
Type a value in the Default Value
field.
-
(Optional) Type a value in the Suggested
Value field.
-
Click Add in the Properties section.
The Add/Edit Property dialog box appears.
-
Type a unique, descriptive name in the Property
Name field.
-
Click Browse.
-
Type the first letter of the type you want to use in the Select entries field.
A list of available types beginning with the letter you typed
appears in the Matching types list.
-
Select the type that you want to use and click OK.
-
Type a value in the Default Value
field.
-
(Optional) Type a value in the Suggested
Value field.