Modifying the Scaffolded Views

We’re going to go through the scaffolded view code of the TekEvent class and make some simple modifications. (The things we change here can just as easily be done for the other classes’ views.) As we go through these changes, we can leave the application running and immediately see the changes by simply refreshing the browser—another example of how Grails keeps that rapid feedback loop going. This also takes the pain out of the tweaking process that we so often have to go through to get a page “just right.”

The List View

We’ll start by removing the organizer from the list view. When we generated the scaffolded views, Grails simply used the first six properties of our TekEvent for the table in the list view, and ...

Get Grails 2: A Quick-Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.