Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LinkedList Data Structure Displayed in JSF

 
Henry Hund
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am struggling to build a variable-sized table (could have any number of rows and any number of rows based on SQL results) for display in JSF. I assume that the <h:dataTable tags are out, so I am prepared to use JSF loops, etc.

I have a data structure in a bean created for just this: it finds the rows, it finds the columns, creates a "matrix" of sorts and then finds SQL results and puts values into the matrix based on those results. Does anybody have any idea how I would display these tables in JSF? Below, please find the attached code. It is somewhat convoluted and any suggestions for improvement would of course be appreciated.

EntityDetails.java


SourceIdentifierMatrix.java


Cell.java
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18221
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LinkedLists are subclasses of Collections, and Collections can be displayed in tabular format in JSF using the JSF DataModel wrapper. It's that easy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic