Defining and Declaring the Renderer Type
<faces-config>
...
<component>
<component-type>com.corejsf.Spinner</component-type>
<component-class>com.corejsf.UISpinner</component-class>
</component>
<render-kit>
<renderer>
<component-family>javax.faces.Input</component-family>
<renderer-type>com.corejsf.Spinner</renderer-type>
<renderer-class>com.corejsf.SpinnerRenderer</renderer-class>
</renderer>
</render-kit>
</faces-config>
Note:
- Component IDs and renderer IDs have different name spaces; thus they can
use the same string
- The component-family element is required to overcome a historical
problem (see p. 388)
- The spinner renderer is in the javax.faces.Input component family
because UISpinner subclasses UIInput.
See Table.