Search code examples
grailsscaffolding

grails dynamic scaffolding - skip a field to render in view


Is there any way to make some fields of a domain invisible in dynamic scaffolding view?


Solution

  • I found it myself:

    We can use the display constraint to achieve this.

    source : http://grails.org/doc/latest/ref/Constraints/Usage.html

    class {
        String notToDisplay
        ...
    
        static constraints = {
            ...
            notToDisplay(display:false)
        }
    }