title: how to call onchange remoteFunction in gsp with multiple parameters?
body: <p>The goal is to update a property of "staff" while choosing a new manager for a specific department. The property that needs to be updated belongs to the previous head of department, hence the need for the record id of the previous manager. </p>
  
  <p>If you look at the code below, "this.value" will deliver me correctly the record id of the newly chosen manager (dropdown combo in a GSP) but I cannot seem to pass the record id of the previous manager with a simple ${deptInstance?.manager?.id} to the ajax remoteFunction</p>
  
  <p>the relationship between them: staff ---1:N---> dept</p>
  
  <p>code snippet in GSP:</p>
  
  <pre><code>&lt;g:select
      name="manager.id" 
      from="${Staff.list()}" 
      optionKey="id" 
      value="${deptInstance?.manager?.id}" 
      onchange="${remoteFunction(action:'managerMaintenance', params:'\'oldmanager=\' + this.value + \'&amp;newmanager=\' + this.value')};"&gt;
  </code></pre>
  
  <p>So far so good, I get the two parameters.</p>
  
  <p>Only problem is that once I use ${groupInstance?.manager?.id} instead of "this.value" for the oldmanager parameter, then I cannot receive anything in the controller method "managerMaintenance"</p>
  
  <p>Does anyone have an idea how to reference the previous value of a dropdown combo in a gsp  remoteFunction call?</p>
  
  <p>Maybe my approach is wrong but I would appreciate any inputs concerning the right GSP syntax or a possible workaround to this.</p>
  
  <p>Many thanks in advance,
  sphere</p>