A very nice JSF 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, without any Java code or configuration. Since custom components are typically composed of other JSF components, they are referred to as composite components.
We can generate a composite component by going to File | New File, selecting the JavaServer Faces category, and selecting the JSF Composite Component file type.
After clicking on Next, we can specify the filename, project, and folder for our custom component.
To take advantage of JSF 2.0's automatic ...