<ao:input>

Renders an <input> tag.

The value may be provided in one of three ways, in precedence order:

  1. Direct child <ao:value> tag.
  2. As the value attribute
  3. Contents of tag body, trimmed.

Tag Information

Tag Class: com.aoindustries.taglib.InputTag
TagExtraInfo Class: com.aoindustries.taglib.InputTagTEI
Body Content: scriptless
Display Name: None

Attributes

Name Required Evaluation Type Description
id No Runtime Object

The id of the element. A nested <ao:id> tag will override this value.

type No Static Object

The type of input. A nested <ao:type> tag will override this value.

name No Runtime Object

The name of <input> tag. A nested <ao:name> tag will override this value.

value No Runtime Object

The value of the input. A nested <ao:value> tag will override this value. If neither is provided, the output of the body is used with whitespace trimmed.

onclick No Static Object

A JavaScript onclick handler. A nested <ao:onclick> tag will override this value.

onchange No Static Object

A JavaScript onchange handler. A nested <ao:onchange> tag will override this value.

onfocus No Static Object

A JavaScript onfocus handler. A nested <ao:onfocus> tag will override this value.

onblur No Static Object

A JavaScript onblur handler. A nested <ao:onblur> tag will override this value.

onkeypress No Static Object

A JavaScript onkeypress handler. A nested <ao:onkeypress> tag will override this value.

size No Runtime Object

The size of the input element. A nested <ao:size> tag will override this value.

maxlength No Runtime Integer

The maxlength of the input element. A nested <ao:maxlength> tag will override this value.

readonly No Runtime boolean

The readonly attribute. Accepts values of true or false. A non-empty nested <ao:readonly> tag will override this value. If readonly is true, will add the attribute as readonly="readonly", otherwise the attribute is not added.

disabled No Runtime boolean

The disabled attribute. Accepts values of true or false. A non-empty nested <ao:disabled> tag will override this value. If disabled is true, will add the attribute as disabled="disabled", otherwise the attribute is not added.

class No Runtime Object

The CSS class for the input element. A nested <ao:class> tag will override this value.

style No Runtime Object

The CSS style for the input element. A nested <ao:style> tag will override this value.

checked No Runtime boolean

The checked attribute. Accepts values of true or false. A non-empty nested <ao:checked> tag will override this value. If checked is true, will add the attribute as checked="checked", otherwise the attribute is not added.

tabindex No Runtime int

The optional tabindex value. Defaults to 0. If value is >= 1, will add tabindex attribute. A non-empty nested <ao:tabindex> tag will override this value.

autocomplete No Static boolean

Turns on or off the autocomplete for this input. Accepts values of true or false (not "on" or "off" due to this being a boolean type). If autocomplete is false, will add the attribute as autocomplete="off", otherwise the attribute is not added. Defaults to true with no attribute added.

Variables

No Variables Defined.