开发者

Grails remoteLink handling error codes

开发者 https://www.devze.com 2023-02-03 01:00 出处:网络
I\'m on grails 1.3.6 and I see the following behavior. <g:javascript library=\"prototype\" /> ...

I'm on grails 1.3.6 and I see the following behavior.

<g:javascript library="prototype" />
...
<g:remoteLink actio开发者_开发问答n="punch" id="${personInstance.id}" update="damage_${personInstance.id}" on401="alert('foo!');">

generates:

<a on401="alert('foo!');" onclick="new Ajax.Updater('damage_5','/blah/person/punch/5',{asynchronous:true,evalScripts:true});return false;" href="/blah/person/punch/5"></a>

"on401" isn't a supported event attribute for an anchor tag, so is this a bug in grails?


On 1.3.5 for me, it just lost on401 attribute. Looks like bug GRAILS-7062.

0

精彩评论

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