O'Reilly logo

Java Enterprise in a Nutshell, Third Edition by William Crawford, Jim Farley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JSF HTML Tags

The JSF HTML tags provide access to components that relate specifically to the HTML rendering model, including all of the standard HTML input components.

Several tag attributes are shared by all of the HTML tags or all of the tags in a particular category, such as the data input tags.

Table B-19. Shared tag attributes

Attribute

Description

Supported by

binding

A JSF EL expression identifying a backing bean property to bind this component to.

All tags (but not relevant for some)

converter

The name of a data converter instance associated with this component.

Input and output tags

id

A custom identifier for this component, allowing access to the underlying HTML element via JavaScript.

All tags

rendered

Boolean expression indicating whether this component and its children should be rendered.

All tags

required

A Boolean expression indicating whether data must be entered into the component in order to perform an action on the surrounding form.

Input tags

styleClass

Specifies the name of the CSS style to be applied to the generated element. Multiple styles can be specified via a comma-separated list.

All but <h:column> and <h:inputHidden>

validator

The name of a validator associated with this component.

Input tags

value

A JSF EL expression indicating the current value of this component. Used for values that are not manipulated by the user. For user-entered data, the binding attribute should be used instead.

Input, output, and control tags

valueChangeListener

JSF EL expression identifying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required