Vic*_*tin 2 tags syntax grails button
嘿.有没有像这样的特殊标签:
<g:link controller="xx" action="yy_" id="${it.id}">
</g:link>
Run Code Online (Sandbox Code Playgroud)
那不需要表单,而不是textLink是一个按钮?
iba*_*alf 10
你实际上已经完成了一半.就像在纯HTML中一样,只需将按钮放在标签内.您可以使用grails中的标准按钮CSS样式.
view:
<g:link action="toLink">
This is a grails app with a button link without a form or submit. Click this
<input type="button" value="I'm a Button Link" class="button"/>
and it should jump to the action.
</g:link>
controller:
def toLink = {
render "It worked!"
}
Run Code Online (Sandbox Code Playgroud)
这是它的样子:

| 归档时间: |
|
| 查看次数: |
17767 次 |
| 最近记录: |