Given the following Grails domain classes, how do I rename the display field name for isbn to "ISBN" (as opposed to the default "Isbn") and the authors to "Author (s)" (as opposed to the default "Authors")?
class Book { String name String isbn static hasMany = [ authors: Author ] } class Author { String name }
You can simply use the messages.properties file for this. Go to grails-app -> i18n -> messages.properties
and define a message like:
'<full packagePath>.<domain name>.<propertyName>.<attribute>' = <message>
book.isbn.label = ISBN
Source: https://habr.com/ru/post/918800/More articles:Updating a non-retina canvas app to display a retina - javascriptCan I connect to the services irc, icq, sip, etc. Using WebSockets, if I have some implementation of these protocols in JavaScript? - javascriptpython now, next, n iteration - functionstrange Python function area behavior - pythonScan Using Nutch ... Shows IOException - javaWhat is the standard with oAuth for remembering users? - twitter-oauthDoes turing machines have a concept of "time"? - language-agnosticEmber.js routing: how do you set the default route for rendering right away? - ember.jshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/918804/adapting-non-iterable-containers-to-be-iterated-via-custom-templatized-iterator&usg=ALkJrhhsspFGUXqS3p5__X-Qxp4x6AaTTwhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/918805/using-generics-to-enforce-valid-structure-at-compile-time&usg=ALkJrhiueN6NLactmhDkApgxbo3nmDIAQQAll Articles