JSF2, PrimeFaces, and Highcharts - Ajax

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.

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.

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.

Anybody?

6
задан Bhesh Gurung 13 May 2011 в 20:10
поделиться