Name

Input/Text

Synopsis

This renderer represents an input component as a text field.

Component family:

javax.faces.Input

Renderer type:

javax.faces.Text

Renders children:

No

Encode behavior

Renders the component as an HTML <input> element with a type attribute set to text, a name attribute set to the component’s client ID, and a value attribute set to the component’s value.

Decode behavior

Looks for a request parameter with the component’s client ID as the name. If it finds the parameter, the renderer passes the parameter value to the component’s setSubmittedValue() method.

Attributes

[accesskey="accessKey"] [alt="altText"] [dir="ltr|rtl"]
[disabled="true|false"] [lang="lang"] [maxlength="maxLength"]
[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"] [size="size"] [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.