Name

<h:inputText>

Synopsis

This action represents an instance of the component type registered with the type ID javax.faces.HtmlInputText (by default, an instance of the javax.faces.component.html.HtmlInputText class), combined with a renderer registered with the renderer type ID javax.faces.Text.

The component is rendered 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.

Syntax

<h:inputText [id="id"] [binding="componentBinding"] [rendered="true|false"]
  [value="value"] [converter="converter"]
  [required="true|false"] [validator="validatorMethod"]
  [valueChangeListener="listenerMethod"] [immediate="true|false"]
  <!-- HTML 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"]
/>

Attributes

Attribute name

Java type

EL expression type

Description

binding
String

VB

Must be a value binding expression for a property the component is bound to.

converter
String or javax.faces.convert.Converter

VB

If set as a static value, ...

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.