Name

Command/Button

Synopsis

This renderer represents a command component as a button.

Component family:

javax.faces.Command

Renderer type:

javax.faces.Button

Renders children:

No

Encode behavior

Renders the component as an HTML <input> element with the type attribute set to submit, reset or image (depending on the value of this action element’s type and image attribute values), the name attribute set to the component’s client ID, and the value attribute set to the component’s value.

Decode behavior

Looks for a request parameter with the component’s client ID as the name (possibly with a .x or .y suffix). If it finds the parameter and the type attribute isn’t reset, the renderer creates a javax.faces.event.ActionEvent and passes it to the component’s enqueueEvent() method.

Attributes

[type="submit|reset" | image="imageURL"]
[accesskey="accessKey"] [alt="altText"] [dir="ltr|rtl"]
[disabled="true|false"] [lang="lang"] 
[onblur="code"] [onchange="code"] [onclick="code"] [ondblclick="code"]
[onfocus="code"] [onkeydown="code"] [onkeypress="code"] [onkeyup="code"]
[onmousedown="code"] [onmousemove="code"] [onmouseout="code"]
[onmouseover="code"] [onmouseup="code"] [onselect="code"]
[readonly="true|false"] [style="style"] [styleClass="styleClass"]
[tabindex="tabIndex"] [title="title"]

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.