Supported HTML 4.01 Attributes

The JSP actions in the JSF HTML tag library support most attributes that the HTML 4.01 specification declares for the corresponding HTML elements. The individual action descriptions include the supported HTML 4.01 attributes in the syntax section but not in the attributes table. These attributes are instead described in Table A-2. All these attributes are optional and can be set to static values or using any type of JSF EL expression.

Table A-2. Supported HTML 4.01 attributes

Attribute name

Java type

Description

accept
String

A comma-separated list of content types the server that processes the form handles correctly.

acceptcharset
String

Corresponds to the HTML accept-charset attribute (with a dash as a separator). A space- and/or comma-separated list of character encodings accepted by the server processing the form.

alt
String

Alternative text that may be used by a browser that can’t show the element (e.g., text-to-speech browser).

bgcolor
String

Deprecated. The background color for the document body or table cells.

border
String

The number of pixels for the frame around a table.

cellpadding
String

The amount of space between cell borders and the cell content, in pixels or a percentage of the space available.

cellspacing
String

The amount of space between cells and the table frame, in pixels or a percentage of the space available.

charset
String

The character encoding of the target resource.

coords
String

A comma-separated ...

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.