Hi Mike, The solution you gave will solve the issue. I did the same thing, but in Java code. Of course it is better to do it in JSF code (like you did). Anyway, it was nice having an "absolute" row index variable available.
Guy. On Wed, Jul 22, 2009 at 3:29 AM, Mike Kienenberger <[email protected]>wrote: > It's not really clear what problem you're having, but would this solve it? > > rendered="#{not item.deleted or rowIndex == 0}" > > On Tue, Jul 21, 2009 at 4:14 AM, Guy Bashan<[email protected]> wrote: > > 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. > > >

