Java Reference
In-Depth Information
dukesbookstore.renderers.AreaRenderer
</renderer-class>
<attribute>
<attribute-name>onmouseout</attribute-name>
<attribute-class>java.lang.String</attribute-class>
</attribute>
<attribute>
<attribute-name>onmouseover</attribute-name>
<attribute-class>java.lang.String</attribute-class>
</attribute>
<attribute>
<attribute-name>styleClass</attribute-name>
<attribute-class>java.lang.String</attribute-class>
</attribute>
</renderer>
...
Attributes specified in a renderer tag override any settings in the @FacesRenderer
annotation.
The render-kit element represents a javax.faces.render.RenderKit im-
plementation. If no render-kit-id is specified, the default HTML render kit is as-
sumed. The renderer element represents a javax.faces.render.Renderer
implementation. By nesting the renderer element inside the render-kit element,
you are registering the renderer with the RenderKit implementation associated with the
render-kit element.
The renderer-class is the fully qualified class name of the Renderer .
The component-family and renderer-type elements are used by a component
to find renderers that can render it. The component-family identifier must match
that returned by the component class's getFamily method. The component family rep-
resents a component or set of components that a particular renderer can render. The
renderer-type must match that returned by the getRendererType method of the
tag handler class.
By using the component family and renderer type to look up renderers for components,
the JavaServer Faces implementation allows a component to be rendered by multiple ren-
derers and allows a renderer to render multiple components.
Each of the attribute tags specifies a render-dependent attribute and its type. The
attribute element doesn't affect the runtime execution of your application. Rather, it
provides information to tools about the attributes the Renderer supports.
Search WWH ::




Custom Search