Re: n x n dataTable (myFaces)

2006-04-04 Thread Mike Kienenberger
On 3/31/06, fischman_98 [EMAIL PROTECTED] wrote: Was trying to make it dymamic for the future, but can't figure out how to make the row and column data work in conjunction with one another. Need to somehow iterate through row objects that contain lists of column objects. if the var in the

Re: n x n dataTable (myFaces)

2006-03-31 Thread fischman_98
Thanks for the help. So for this solution, I am locking in the three columns and go back to using t:column (no s)is that right? Was trying to make it dymamic for the future, but can't figure out how to make the row and column data work in conjunction with one another. Need to somehow

Re: n x n dataTable (myFaces)

2006-03-30 Thread Mike Kienenberger
You can either create your own custom renderer for dataTable, or you can manually render everything by using a dataList on your page and adding all of the table-building tags explicitly -- you'll need to drop the column components from your page code if you go that route. On 3/29/06, Le Van [EMAIL

n x n dataTable (myFaces)

2006-03-29 Thread fischman_98
this message in context: n x n dataTable (myFaces) Sent from the MyFaces - Users forum at Nabble.com.

Re: n x n dataTable (myFaces)

2006-03-29 Thread Mike Kienenberger
On 3/29/06, fischman_98 [EMAIL PROTECTED] wrote: Can someone help me make a nxn dataTable using myFaces. I want 3 columns and n number of rows) Trying to use Tomahawk t:dataTable and t:columns, can't work it all out. Can't figure out how to loop through the rows and only show the number of

Re: n x n dataTable (myFaces)

2006-03-29 Thread fischman_98
I guess I should have included this in the original message (probably thinking it but didn't write it!)... I want to put one row of database data into a single table column. So in a 3xn table, the first three rows fetched from the database make three columns of the first row in the displayed

Re: n x n dataTable (myFaces)

2006-03-29 Thread fischman_98
So for option 2, how do you reference index 0's one, two and three objects? I was trying to reference the t:dataTable var in the t:columns? This wasn't working. ie: t:dataTable value=#{...} var=row ... . . t:columns value=#{row.getColumn() I understand how to create the list of objects you

Re: n x n dataTable (myFaces)

2006-03-29 Thread Mike Kienenberger
You'd write a java class implementing DataModel, probably. You could implement List instead if you liked. Make it into a managed bean, and then assign your source list as a property to it. For example class ConsolidatedList implements List { public ConsolidatedList() public void

Re: n x n dataTable (myFaces)

2006-03-29 Thread Le Van
Mike Kienenberger wrote: You'd write a java class implementing DataModel, probably. You could implement List instead if you liked. Make it into a managed bean, and then assign your source list as a property to it. For example class ConsolidatedList implements List { public

Re: n x n dataTable (myFaces)

2006-03-29 Thread Dennis Byrne
To: 'MyFaces Discussion' Subject: Re: n x n dataTable (myFaces) Mike Kienenberger wrote: You'd write a java class implementing DataModel, probably. You could implement List instead if you liked. Make it into a managed bean, and then assign your source list as a property to it. For example class