Custom Component Implementation Summary
- A custom tag (corejsf:spinner) is used in a JSF page
- The tag is described in a TLD (tag library descriptor) file
(spinner.tld), which also specifies the tag class
- The tag class (SpinnerTag.java) manages the tag attributes and
also specifies the component type (com.corejsf.Spinner)
- The configuration file (faces-config.xml) associates the
component type with the component class (UISpinner.java)
- The component class handles rendering of the user interface (encoding)
and processing of user requests (decoding)
Here is the
full faces-config.xml file.
Here is a pictorial representation of the
overall process.