这没有用,当我在HTML输出上执行view-source时,Grails删除了onClick处理程序(Grails 1.2.1)我缺少什么?
我正在尝试国际化javascript中显示的确认消息
<g:actionSubmit id="deleteButton" value="Delete" action="deleteActivities" onclick="return confirm(' ${g.message(code="common.confirm.delete", args="['Activity']") } ');"/>
答案 0 :(得分:0)
尝试按如下方式使用它:
<g:actionSubmit id="deleteButton" value="Delete" action="deleteActivities" onclick="return confirm(' ${message(code: "common.confirm.delete", args: ['Activity'])} ');"/>