`
robinfung
  • 浏览: 55128 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

myGSP

阅读更多

1. two method to call another tab from one tab(^+^grails)

1.1 url= '<r2k:categoryUrl category="${cat}" retailerName="${retailer?.name?:''}"/>'
1.2 url="${r2k.categoryUrl(category:cat, retailerName:retailer?.name?:'')}"

 

2. use the global variable

<g:set var="lastChildIndex" value="${navItem.children?i+navItem.children?.size():lastChildIndex}"/>  

 

3. cannot taglib embed taglib 

<g:link url="
<g: yourTagLib>xx</g:yourTagLib>
">xx<g:link>

  

i guest that is because the GSP don't know the taglib render order, use this can be one solution

<a href="
<g: yourTagLib>xx</g:yourTagLib>
"/>xx</a>

 another solution tips, method-style syntax like below 1.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics