Click or drag to resize
TextArea

The TextArea control is used to type unstyled text with the possibility to jump lines.

Attributes and elements

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

Attributes

Attribute

Description

label

Creates a label tag next to the textarea tag.

labelposition

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

id

id attribute of the textarea

name

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

enabled

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

cols

width of the textarea in characters. Default: 60

rows

height of the textarea in characters. Default: 10

init

XPath attribute; the initialization text

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>
<textarea id="{@id}" name="{@name or @id}" cols="60" rows="10">
  <!-- @init -->
</textarea>
<!-- if labelposition right -->
<label for="{@id}">@label</label>
Examples
<acs:TextArea id="mytextarea" cols="100" rows="20" init="{THEME/DESCRIPTION}" />