How to override standard behavior of ApplicationTagLib#createLink and g:link?

后端 未结 3 1120
攒了一身酷
攒了一身酷 2021-01-02 04:03

Background: I have grails 1.3.7 application which uses g:createLink and g:link on many pages.

Recently I decided to make b

3条回答
  •  旧时难觅i
    2021-01-02 04:48

    add regionId to params in createLink and g:link and grails is smart enough to match your urlmappings. i.e

    ${createLink(controller:'c',action:'a',id:1,params:[regionId:2])}
    

提交回复
热议问题