O'Reilly logo

Grails 2: A Quick-Start Guide by Ben Klein, Dave Klein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Search Using Dynamic Finders

When an event organizer logs into TekDays, we should give them a direct link to the event, or events, that they are organizing. These folks are busy; we don’t want to waste their time. Fortunately, this is very easy to do using Grails’ dynamic finders (introduced in Introducing GORM).

Here’s the plan. When the user logs in, we will find all the TekEvent instances that have this user assigned to the organizer property. We will then display links to the show view for each TekEvent on the home page.

The search part of this feature is pretty simple, but we have to decide just where to do it and how to display it. Let’s have a brief design session to see what we can come up with. We want to show the organizer’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required