This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes LinkedList Data Structure Displayed in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "LinkedList Data Structure Displayed in JSF" Watch "LinkedList Data Structure Displayed in JSF" New topic

LinkedList Data Structure Displayed in JSF

Henry Hund

Joined: Jul 20, 2006
Posts: 3
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17011

LinkedLists are subclasses of Collections, and Collections can be displayed in tabular format in JSF using the JSF DataModel wrapper. It's that easy.

Customer surveys are for companies who didn't pay proper attention to begin with.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: LinkedList Data Structure Displayed in JSF
It's not a secret anymore!