Constraint "display: false" not working Grails 5

Viewed 14

According to the documentation: http://docs.grails.org/latest/ref/Constraints/Usage.html

a display: constraint should control whether a property is displayed in views.

Example:

static constraints = {
    username(nullable: false, blank: false, unique: true)
    password(nullable: false, blank: false, password: true)
    firstname(nullable: true, blank: true)
    surname(nullable: true, blank: true)
    mail(nullable: true, blank: true)
    lastLogged(nullable: true, blank: true, display: false)
}

Looking at the code above, last logged column should not be present in the view, however the column is still there.

Environment Information: grails 5

Can someone give me a hint why the constraint is not working as it should?

Thanks in advance.

0 Answers
Related