I have been working on a Visualforce page that displays a list of items from a collection and I want to display the current row number next to each item. I found this post that describes a solution but I think there may be a bug in one of the components so here is proposed work around. I want to display a collection like this:
It seems that there may be a bug in the way method works with the dataTable component. It works correctly with the following components.
DataTable Component - Does not work??
So the solution that I came up with is to wrap my collection in an wrapper class implemented as an inner class in the controller.