How to create select one menu with chart styles
===

I want to create JSF page which displays data in graphical charts. I found these examples:

[example1][1]
[example2][2]

I want to create select one menu from which the user can choose in which chart to display the data. Can you give some basic example how I can do this with AJAX?

Best Wishes


  [1]: http://www.primefaces.org/showcase-labs/ui/areaChart.jsf
  [2]: http://www.primefaces.org/showcase-labs/ui/interactiveCharts.jsf