title: JSF 2.0 AJAX: jsf.ajax.request to call method not only rerender an area of page
body: <p>I'm looking for a soultion of the following problem:
  _The is a list of links with different types of cars.
  _The user can click on each car in the list and a ajax request should be sent.
  _The response of the ajax request should be dependent on the id (of each car) and displayed in an panelGroup.</p>
  
  <p>So what I need is a possibility to call a method on the backing-bean. Additionally, this method should be called with a car id as its parameter.</p>
  
  <p>My code so far looks like:</p>
  
  <pre><code>...
  function showDetails(detailsFor){
    jsf.ajax.request(this, event, {render: 'form1:carDetails'});
  }
  ...
  &lt;ul&gt;
      &lt;ui:repeat value="#{carTree.getCars)}" var="car"&gt;
              &lt;h:outputScript name="jsf.js" library="javax.faces" target="head" /&gt;
              &lt;li onclick="showDetails(#{car.id});"&gt;#{car.name}&lt;/li&gt;
      &lt;/ui:repeat&gt;
  &lt;/ul&gt;
  ...
  &lt;h:panelGroup id="carDetails" layout="block" style="float:left;"&gt;
      // need the details of each 'selected /clicked' car here
  &lt;/h:panelGroup&gt;
  ...
  </code></pre>
  
  <p>And the method in the backing bean should look like:</p>
  
  <pre><code>public class CarTree {
      ...
      public String getCarDetails(int carid){
          return "The car details for the car id "+carid+" are......";
      }
      ...
  }
  </code></pre>
  
  <p>I've no idea how to call a method by using the new JSF 2.0 AJAX functionality. Please, help me...</p>