def constraints = {
description(widget:'textarea')
}
... which I got from the Grails site. So, if you want to use the code generators to create views for a form and want a string to have a text area as its input you can use the constraints on the object to specify text area. But wait, what other widgets can you specify?
I did a little digging in the Grails source code and came up with this list....
- textField
- hiddenField
- submitButton
- field
- textArea
- form
- actionSubmit
- actionSubmitImage
- datePicker
- renderNoSelectionOption
- timeZoneSelect
- localeSelect
- currencySelect
- select
- checkBox
- radio