【发布时间】:2010-06-08 22:35:39
【问题描述】:
我正在尝试列出地址和 onChange 事件,我发送地址 ID 并返回用户列表。
<g:select name="AddressID" from="${address}" optionKey="id" optionValue="address"
onchange="${ remoteFunction(
action:'testMe',
params:'\'id=\' + this.value' ,
update:'show' )}">
</g:select>
我称这个 div 为“显示”。
<div id="show">
<g:each in="${users}" status="i" var="C">
<h3>${C}</h3>
</g:each>
</div>
但是,当我单击列表框中的项目时,我收到以下错误:
description The requested resource (/MyTest/WEB-INF/grails-app/views/test/testMe.jsp) is not available.
我对 remoteFunction 中的 update 属性的理解是,它是在 remoteFunction 调用完成后刷新的 div 的名称。
谢谢。
【问题讨论】:
标签: grails