title: How to dynamically change the columns of a data table?
body: <p>I am using JSF 2.0 and PrimeFaces 2.2. I have a data table whose columns need to be updated according to the selection from drop down menu. I do not want to create multiple data tables as there are many values in drop down according to which column values as well as number of columns in datatable will be shown.</p>
  
  <p>Is it possible to do so?</p>
  
  <p>Ok let me very specific, suppose i have ten items in drop down menu and on every selection there is a different type of datatables that i have to show on selection from drop down menu, i dont want to make 10 different types of datatable, i want a single datatable in which i can select the columns according to my selection(the datatables have lots of same entries, so there will be lot of repetitive entries in every datatable).</p>