id_rowNum returns the row number in the table but changes when sorting is used so that you could end up with row numbers: 1,3,2, etc... instead of 1,2,3...
I've seen the property getViewIndex for the table decorator but have no idea how to access it. Help anyone?
Also, I've built my own TableDecorator that returns the actual (displayed) row number but I can only access this as a display column property:
<display:column property="rowCounter" />
I need to be able to access this in EL like:
<display:column>
<c:if test="${row.rowCounter}">
do something...
</c:if>
</display:column>
But I get an error because row is referring to the object in the list and not my table decorator (which is being declared property).
I've search high and low, seen a few similar posts but no solutions! Can anyone please help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
id_rowNum returns the row number in the table but changes when sorting is used so that you could end up with row numbers: 1,3,2, etc... instead of 1,2,3...
I've seen the property getViewIndex for the table decorator but have no idea how to access it. Help anyone?
Also, I've built my own TableDecorator that returns the actual (displayed) row number but I can only access this as a display column property:
<display:column property="rowCounter" />
I need to be able to access this in EL like:
<display:column>
<c:if test="${row.rowCounter}">
do something...
</c:if>
</display:column>
But I get an error because row is referring to the object in the list and not my table decorator (which is being declared property).
I've search high and low, seen a few similar posts but no solutions! Can anyone please help?