Implementing Custom Component Tags
Recall that custom components require both:
- A component class (like UISpinner)
- A tag handler class (like SpinnerTag)
The tag handler class name is specified in a TLD (tag library
descriptor) file:
- Must have a .tld extension
- Often located in the WEB-INF directory
Tag libraries are referenced by the uri attribute of the taglib
directive in the JSF page:
<%@ taglib uri="http://corejsf.com/spinner" prefix="corejsf" %>
This URI is specified in the TLD file:
<uri>http://corejsf.com/spinner</uri>
along with tag attribute definitions.