• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a dynamic table

 
joe black
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a table using a component by a company called infragistics. The table must be created dynamically, since every aspect of it changes depending on the data. I have a bean which gets back a list of column names, and all the data for the columns. So basically, there is an ArrayList of the columnNames for the tables, and the data for all the rows.

I am trying to bind the grid to a class I have called DynamicGrid which I want to generate the table. The problem is, I don't know how or what to bind to. It is easy to have a static number of columns and then just bind to the arraylist of rows, but how can I bind to both properties, so that all aspects of the table can be created dynamically, ie variable number of columns, column names, rows.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That will depend on the component you are using. I know nothing about infragistics components. If it's from here I am guessing the library is commercial? I'd bet they have some support? Documentation? Have you checked into that?
 
joe black
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yea I am waiting for a response from them.

I am new to JSF so I wanted to make sure that it was not a JSF issue.
 
joe black
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think its not only about the infragistics component though. For example, how would you create a table with dynamic rows and columns using only JSF components. How would you do the binding for the column names and the rows? Every example I've seen, the names of the columns are known.
[ July 13, 2006: Message edited by: Joe Black ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic