开发者

Grails formRemote: specifying real url as parameter

开发者 https://www.devze.com 2022-12-19 05:27 出处:网络
I\'m trying to use the Grail formRemote tag.I\'m using it like so: <g:formRemote name=\"newRule\" url=\"https://somesite/somescript\">

I'm trying to use the Grail formRemote tag. I'm using it like so:

<g:formRemote name="newRule" url="https://somesite/somescript">

However, I keep getting the error:

groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.web.taglib.JavascriptTagLib.deepClone() is applicable for argument types: (java.lang.String) values: [https://somesite/somescript]

How do开发者_如何学JAVA I specify a real URL in this field instead of a map with controller, action, etc... ?


Have you tried using the createLink method inside the url attribute? For example <g:formRemote name="someName" url="${createLink(controller:'somescript', base:'https://somesite')}" >

or you could pass it this way: url="[controller:'somescript', base:'https://somesite.com']" Seems to work in my test app.

0

精彩评论

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