title: redirect onclick of table row in grails
body: <p>I have table in UI which is populated by values from database. Now I want to call a controller action Onclick of table row and render to different view.
  I tried following code function is getting executed properly but its not rendering to different view.</p>
  
  <p><strong>In GSP:</strong> </p>
  
  <pre><code> &lt;tr onclick="&lt;g:remoteFunction controller="LeaveApplied" action='getLeaveDetail' id='${it.id}'/&gt;"&gt;
  </code></pre>
  
  <p>controller: </p>
  
  <pre><code>def getLeaveDetails(){
      def leaveObj = leaveAppliedService.getLeaveDetail(params.id)
      println "leave: "+leaveObj
      render(view:'respond', model: [leave:leaveObj])
       }
  </code></pre>
  
  <p>Any Answers will be thank full.</p>