Grails remoteLink handling error codes

Posted by soybie on Stack Overflow See other posts from Stack Overflow or by soybie
Published on 2011-01-06T11:49:52Z Indexed on 2011/01/06 11:54 UTC
Read the original article Hit count: 191

Filed under:

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

<g:javascript library="prototype" />
...
<g:remoteLink action="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?

© Stack Overflow or respective owner

Related posts about grails