A very nice JSF 2.0 feature is the ability to easily write custom JSF components. With JSF 2, creating a custom component involves little more than creating the markup for it, with no Java code or configuration needed. Since custom components are typically composed of other JSF components, they are referred to as composite components.
We can generate a composite component by clicking on File | New, selecting the JavaServer Faces category and the JSF Composite Component file type.
After clicking on Next >, we can specify the file name, project, and folder for our custom component.
To take advantage of JSF 2.0's automatic resource ...