If you run "grails install-templates", you can edit src / templates / scaffolding / renderEditor.template, where HTML generation for editors is defined. Add to the new "else if" for String []:
else if (property.type == String[].class)
out << renderStringArrayEditor(domainClass, property)
and implement renderStringArrayEditor, but you think the best is:
private renderStringArrayEditor(domainClass, property) {
...
}
, HTML , \n. , , String .
"grails generate-all" "grails generate-views", "grails generate-views" GSP .