Click or drag to resize
TextBox

The TextBox control is used to type unstyled text with no line feed.

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

label

Creates a label tag next to the input tag.

labelposition

Where to place the label tag, "left" or "right"; default: left.

id

id attribute of the input

name

the name of the input; defaults to the control's id

enabled

true or false; if false, the input is grayed and its content cannot be modified

maxlength

maximum length for the content in characters. Default: unlimited

init

XPath attribute; the initialization text

password

true or false; if true, the content is hidden using the platform's default hiding character (star, dot, etc.)

Child elements

None.

Parent elements

Element

Description

any xhtml or xsl element

Styling information

The XHTML structure created by the acs:TextArea is the following:

<!-- if labelposition left -->
<label for="{@id}">@label</label>
<input type="text" id="{@id}" name="{@name or @id}" maxlenght="100" value="{@init}"/>
<!-- if labelposition right -->
<label for="{@id}">@label</label>
Examples
<acs:TextBox id="mytextbox" maxlength="100" init="{THEME/NAME}" />