<g:textField name="myField" value="${myValue}" />
name
value
Show Source
def textField = {attrs -> attrs.type = "text" attrs.tagName = "textField" def result = field(attrs) if (result) { out << result } }