Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“display false” is not hiding but placing as first column #21

Open
godspeedyou opened this issue Apr 1, 2016 · 2 comments
Open

Comments

@godspeedyou
Copy link

I've built a small grails (3.1.4) application. I have the following domain model and am using dynamic scaffolding:


class Player {

    String name
    String identifier
    int points

    static constraints = {
      identifier(display: false)
    }

    static mapping = {
      version false 
   }
}

I want to hide the identifier as shown in the code. However, the column is not hidden. Instead it is shown as the first column in the table.

@jeffscottbrown
Copy link
Member

“display false” is not hiding but placing as first column

Is it really the case that display: false is causing it to be placed in the first column? I expect that if there were other items in the constraints block, the first column will be the item that is listed first in the constraints block, not necessarily one that has display: false. The order in the block is supposed to dictate the order in the view.

Thanks for the feedback.

@godspeedyou
Copy link
Author

When I use the following:

static constraints = { name(display:true) points(display:true) identifier(display: false) }
The table of my person view is rendered as expected. 1. is name, 2. points, 3. identifier. However, the main problem persists, the identifier column is not hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants