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 ...

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.