I have something like this:
<g:each in="${temp}">
<li>Date: ${it.dateParticipated}, <br>Role: ${it.role}, <br>Acceptence: ${it.accepted}, <br>
<g:link controller="conference" action="participated" id="${it.conference.id}">
Conference: </g:link>${it.conference},<br>
Role: ${it.role}, <br>Status: ${it.status}</li><br>
<br>
</g:each>
What i want to do is, when i click on ‘Conference’, the controller ‘conference’ with the method ‘participated’ is loaded, and the params ‘it.conference’ is passed. How can i pass this params in the g:link tag ?
I need this because, when i click in the ‘conference’ word, other page is loaded with the conference details with the id passed.
Use the params attribute to pass in a map of parameters:
See the documentation for more examples.