Its been quite some time since i have started developing web pages using JSF but i am still learning most of the stuff. Now I have an interesting question
When I have the values those to be displayed in a data table in the ArrayList and I am adding those ArrayList objects in another array list , so now how will i be able to display them in a data table.
I am doing this since , i need my table to be so dynamic so that i dont know how many columns will i be getting in the result set to be displayed in the page, hece i cannot have a Bean obj for storing my variable values. So i have decided to have something like
ArrayList<ArrayList<String>>
ArrayList<String> - Values for Each row
Does this have a solution that can be provided int he jsf page
Use either plain HTML with a nested
<ui:repeat>or grab a 3rd party component library which has sort of a
<x:columns>tag like PrimeFaces with<p:columns>and Tomahawk with<t:columns>.Either way, you can even keep the columns in a separate list.