Friday, February 17, 2012

Undocumented? Grails scaffolding feature. Widgets

Present in old docs, but weirdly not the latest, you can request a different widget on scaffolded pages for your domain class.

In the domain's scaffold closure:


def constraints = {
        myStringField(widget:'textarea')
}

1 comment:

  1. Thanks, Grails kept displaying my TEXT column as a small one line text input. Didn't want to mess with static scaffolds.

    ReplyDelete