title: JSF2, PrimeFaces, and Highcharts - Ajax
body: <p>Has anybody used JSF2, PrimeFaces, and Highcharts together?
  I am really confused on how I should put all these together, specially regarding the ajax request to get the data from the server to feed into Highcharts on the view to update the chart.</p>
  
  <p>What I have right now is a servlet that handles the Ajax request, which is sent using JQuery.ajax() method and use JQuery to update the chart with the new data received as JSON object. And I am using GSon.toJSon to convert Java object into JSON object.</p>
  
  <p>What I am trying to achieve here is that I want to replace that servlet with the JSF2. Instead of using a different servlet, I want to use JSF and have some backing bean to prepare and send the JSON object to the client.</p>
  
  <p>Anybody?</p>