HTML Render Kit Classes

A renderer attached to a component is responsible for generating a representation of the component suitable for the specific device type the renderer represents, such as one or more HTML elements for a browser device. It is also responsible for extracting submitted values and configuring the component instance with the values or queue an event signaling that the component was activated. A renderer instance must be threadsafe, because a single instance of each type may be used for multiple, parallel requests.

The specification defines only the abstract Renderer class that all renderers must extend. The concrete renderers are defined in terms of their behavior only. This section describes the Renderer class, followed by descriptions of each concrete renderer in the standard HTML render kit.

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.