Hi,
Data table row index is a nice thing. When a row is not rendered the index
still goes up, which is logical and excepted.
I have a list of items kept on the session. When user decide to delete item
I do not physically delete it, since it will be deleted only after pressing
save (I just mark it for deletion). But, I don't want to show deleted items
on the screen. So I simply use rendered="#{not item.deleted}" which works
fine. But now, I want to show a link only for the first item on the table,
so I do: rendered="#{rowIndex == 0}", which doesn't work, if the first item
on the table was deleted, since the index starts at 1 (the first item is not
rendered).
Is there any "absolute" index property can be used for data tables/data
lists?
Thanks,
Guy.