(Quick Reference)

textField

Purpose

Creates a input of type 'text' (a text field). An implicit "id" attribute is given the same value as the name unless you explicitly specify one.

Examples

<g:textField name="myField" value="${myValue}" />

Description

Attributes

  • name (required) - The name of the text field
  • value (optional) - The initial text to display in the text field. By default the text field will be empty.

Source