A JSF composite component is a special type of template that allows to write reusable JSF UI components without any Java code.
A composite component resides in an xhtml file which is placed under 'webapp/resources/myLib/' directory. This file contains two main elements interface and implementation.
Let's see an example to learn how to create a composite JSF component.