开发者

Grails get id in each tag

Hey. How can i get the current temp id to pass to the controller in the glink? (####)?

<g:each in="${temp}">

  <li>Date: ${it.dateParticipated}, <br>Role: ${it.role}, <br>Acceptence: ${it.accepted}, <br>
  <g:link controller="conference" action="participated" params="[temp: it.conference.id]">
     Conference: </g:link>${it.conference},<br>
Status: ${it.status}<br>
<g:link controller="confere开发者_StackOverflow中文版nceUser" action="edit1" params="[temp2: it]">#####
    - Update </g:link></li>

  <br>
</g:each>


Just add an "id" attribute.

<g:link controller="conferenceUser" action="edit1" id="${it.id}" params="[temp2: it]">#####
        - Update </g:link>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜