(Quick Reference)

textArea

Purpose

Adds a TextArea field to the parent container.

Examples

// Within a form
<v:form bean="${bookInstance}">
  <v:textArea name="introduction" rows="10" columns="50">Introduction</v:textArea>
</v:form>

// Standalone <v:textArea>My Text Area</v:textArea>

Description

The textArea tag is a special type of field tag, where the field component is a Vaadin TextArea.

Body

  • Contains the caption for the field

Attributes

Specific
  • name (required) The property name of the field
  • caption (optional) The caption of the field. Overrides the body content.
  • rows (optional) The number of rows to display.
  • columns (optional) The number of columns to display.
  • onTextChange (optional) Either a TextChangeListener or a Closure that takes a TextChangeEvent parameter.
  • onValueChange (optional) Either a ValueChangeListener or a Closure that takes a ValueChangeEvent parameter.

General
  • var (optional) Uses Grails's set tag to set the value of the specified variable to be this component.
  • class (optional) The CSS class name to add to the component using the addStyleName() method
  • sizeUndefined (optional) Calls setSizeUndefined() on the component. (Attribute value is ignored)
  • sizeFull (optional) Calls setSizeFull() on the component. (Attribute value is ignored)

See Vaadin TextArea API docs for full list of allowed attributes.