Given the following Grails Domain Classes, how do I go about renaming the displayed field name for isbn to be "ISBN" (as opposed to the default "Isbn") and authors to be "Author(s)" (as opposed to the default "Authors")?
class Book {
String name
String isbn
static hasMany = [ authors: Author ]
}
class Author {
String name
}
You can just use messages.properties file for that. Go to grails-app --> i18n --> messages.properties
and define message like:
'<full packagePath>.<domain name>.<propertyName>.<attribute>' = <message>
book.isbn.label = ISBN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With