0
我需要關於groovy的建議。我的遠程功能不工作。這是我的代碼。請指教。G:需要textfield遠程功能建議
<g:textField name="name"
onchange="${remoteFunction(action:'validateName',update:'errorName', params:'\'name=\' + this.value')}"/>
我需要關於groovy的建議。我的遠程功能不工作。這是我的代碼。請指教。G:需要textfield遠程功能建議
<g:textField name="name"
onchange="${remoteFunction(action:'validateName',update:'errorName', params:'\'name=\' + this.value')}"/>
remote constraints插件爲您完成大部分工作。
而且,如果你想使用只有你有使用「remoteConstraints」標籤中的AJAX功能:
<g:remoteConstraints
beanName="Test"
fieldName="name"
template="/shared/error"
var="errorBean"
updateElement="errorsDiv"/>
究竟是不是工作? –
和!你想做什麼?!?! –
我想在使用Ajax進行編輯時驗證文本字段 – user903772