• Post Reply Bookmark Topic Watch Topic
  • New Topic

Making a table with a variable amount of columns.  RSS feed

 
Mark Bessem
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I need to make a rich:dataTable to read a csv-file. The problem is, it needs to be generic and the amount of columns isn't always the same.
My first thought was to make a list with the header names and loop trough these in the xhtml page, creating a new column with each loop.
So far I've tried c:forEach, ui:repeat, a4j:repeat but they don't seem to be alowed inside a rich:dataTable element.

Any suggestions on how to implement this?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!