Thanks Renzo, that was also my opinion first. I had an implementation problem and reinitialized for every cell the datamodel and so the rowid was always 0. Now I fixed and it works well again - with the rowId. Regards, Stephan
________________________________ Von: Renzo Tomaselli [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 6. Dezember 2006 15:54 An: MyFaces Discussion Betreff: Re: AW: How to get ColIndex in <t:dataTable> Stephan, t:columns usage is something like: <t:columns id="columns" value="#{resultBean.columnHeaders}" var="columnHeader"> where columnHeaders is a DataModel (List, Array or custom). Then variable columnHeader refers to your class containing any useful method as you want (such as header label). Among the others, it can return columnRow from method getRowIndex() as implemented by the containing DataModel (columnHeaders). Don't get confused by names, since a DataModel is modelled through rows (as method names), even when used to represent columns. -- Renzo Strittmatter, Stephan wrote: Has someone an idea? Would be great, because I have no other solution for workaround currently. -----Ursprüngliche Nachricht----- Von: Strittmatter, Stephan [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 5. Dezember 2006 14:17 An: MyFaces Discussion Betreff: How to get ColIndex in <t:dataTable> Hi all, one question: How could I get the colIndex within a Tomahawk datatable? I use included <t:columns> to add some lists, but there in the implementation I neet the index of the current column. The current row is no problem, I get it via rowIndexVar="rowIndex" within the datatable, but there is no way to get the column index. Has someone an idea how to solve? Thanks for any support, Stephan

