Saturday, 7 September 2013

How to change a f:field (textField) by a textArea using Grails Fields Plugin

How to change a f:field (textField) by a textArea using Grails Fields Plugin

In the documentation changelog of the plugin, at Version 1.1, we can read:
Support `widget:'textarea'` constraint.
Grails has a textArea field. This is the example of the grails documentation:
<g:textArea name="myField" value="myValue" rows="5" cols="40"/>
But, if we are using Grails Fields Plugin, and we have a code like:
<f:field bean="popularExpressionsInstance" property="omg" />
How could we convert it to textArea to allow to type several lines of text?

No comments:

Post a Comment