This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Creating a dynamic table

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic