Ajax Grails创建remoteFunction时出错
在我的一个视图中,我添加了一个Ajax Grails创建remoteFunction时出错,ajax,function,grails,Ajax,Function,Grails,在我的一个视图中,我添加了一个remoteFunction,如下所示: <select onchange="${remoteFunction(action:'results', controller:'results' )}"> <option>first</option> <option>second</option> </select> 我一直收到一个错误: Error generating sca
remoteFunction
,如下所示:
<select onchange="${remoteFunction(action:'results', controller:'results' )}">
<option>first</option>
<option>second</option>
</select>
我一直收到一个错误:
Error generating scaffolded view [/patientList/list]: No signature of method: SimpleTemplateScript2.remoteFunction() is applicable for argument types: (java.util.LinkedHashMap) ....
有什么不对劲吗?我真的被困在这里了
template=“results”
是打字错误吗?应该是template:“results”,bean:“
并且查看您的错误,您将此代码添加到src/template
右侧?选择代码在另一个gsp视图中
Error generating scaffolded view [/patientList/list]: No signature of method: SimpleTemplateScript2.remoteFunction() is applicable for argument types: (java.util.LinkedHashMap) ....