Grails: use list in Controller and View
问题 class Candidate { String username; static HasMany=[applications:Application] } class Vote { String name; Date firstdate; Date enddate ; static HAsMany=[applications:Application] } class Application { Date datedemand; Candidate candidate; Vote vote; static belongsTo = [candidate:Candidate,vote:Vote] } I want to display the list of votes and if I click on a vote, it displays the list of candidates for this vote. I started the following attempt, and I remain blocked : def candidatsGrpByVte(){