Details
Description
When having this remoteField tag:
<g:remoteField action="hello" id="1" params="[var1: 'one', var2: 'two']" update="success" name="myname" value="myvalue"/>
the expected html would be:
<input type="text" name="myname" value="myvalue" onkeyup="new Ajax.Updater('success','/test-yui/remoteTags/hello/1',{asynchronous:true,evalScripts:true,parameters:'var1=one&var2=two&value='+this.value});" />
but is:
<input type="text" name="myname" value="myvalue" onkeyup="new Ajax.Updater('success','/test-yui/remoteTags/hello/1',{asynchronous:true,evalScripts:true,parameters:'var1=one&var2=two&value=this.value'});" />
The problem is that this.value is included within the single quotes but should be outside. The result is that instead of the field's value 'this.value' is send as string to the server.
I've a similar problem with remoteFunction tag if you use the params tag as map:
<select onchange="${remoteFunction(action:'hello',update:'success', params:[value: 'this.value'] )}">
<option value="1">first</option>
<option value="2">second</option>
</select>
If you use a String as params attr (like params:'\'value=\' + this.value') then it works.