aspose file tools*
The moose likes JSF and the fly likes Creating a dynamic table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Creating a dynamic table" Watch "Creating a dynamic table" New topic
Author

Creating a dynamic table

joe black
Ranch Hand

Joined: Dec 03, 2003
Posts: 103
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

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?


GenRocket - Experts at Building Test Data
joe black
Ranch Hand

Joined: Dec 03, 2003
Posts: 103
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

Joined: Dec 03, 2003
Posts: 103
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a dynamic table