title: How to use jsf.ajax.request to manually send ajax request in JSF
body: <p>I have a table and each row has the 'onclick' configured to call a js function - this part works. I would like the function to issue an ajax request to a method that I can somehow define. Upon return, a div below the table should be rendered. Is this possible? I tried the JS function with the code:</p>
  
  <pre><code>&lt;h:outputScript library="javax.faces" name="jsf.js" /&gt;
  ...
  function clickAndRender() {
    jsf.ajax.request(this, event, {render: 'div-to-render'})
  }
  </code></pre>
  
  <p>But it doesn't work of course. I have no idea what the values of the 'source' parameter (the code above uses 'this') should be, neither do I know what execute in the last parameter should be set to. I also don't know how to define the url to be called and the 'action' method.</p>
  
  <p>The solution could also be using some invisible form somewhere else in the page that get's submitted by the click. Can anybody help?</p>