开发者

G:textfield remote function advice needed

i need advice on groovy. My remote function's not working. here is my codes. please advice.

<g:textField name="name"
                  onchange="${remoteFunction(action:'validateName',update:'errorName', para开发者_如何学运维ms:'\'name=\' + this.value' )}"/>


The remote constraints plugin does most of the work for you.

And, if you want to use only the ajax function you have to use the "remoteConstraints" tag:

 <g:remoteConstraints 
   beanName="Test" 
   fieldName="name" 
   template="/shared/error" 
   var="errorBean"
   updateElement="errorsDiv"/>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜