Issue 244: need to add a serial number for a table
Status:  Fixed
Owner: ----
Closed:  Mar 2011
Reported by karthick...@gmail.com, Feb 8, 2010
What steps will reproduce the problem?
1. i would like to add serial number for the table.
2. where it should not affect by other column sorting. 
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?

jmesa 2.4.1
Please provide any additional information below.

need your help as early as possible

Feb 9, 2010
Project Member #1 jeff.johnston.mn@gmail.com
What do you mean by "add serial number for the table"?
Feb 9, 2010
#2 karthick...@gmail.com
i had constructed table as below

First Name Last Name Age

john       Antony     45

jackson     anto      57

i need the table should be like this

S.no   First Name Last Name Age
1      john       Antony     45

2      jackson     anto      57

the S.no value  should not change while i perform sorting in First Name/Last Name/Age
 
Feb 10, 2010
Project Member #3 jeff.johnston.mn@gmail.com
There is an attribute called "rowcount" that is put into the page scope (for each
row) if you are using the tag library, and I believe that it starts at 1 too.
Otherwise you would need to write a CellEditor that does what you need. You can find
an example of creating a custom cell editor in the basic and tag tutorial.
Mar 2, 2010
#4 piaoxi...@gmail.com
I've noticed this on the wiki,  "if you need to take in account pagination you can find 
the current page on the Limit object". 
I wonder how can I get a  Limit object in a CellEditor to gain the pagination for a tag 
use.
Hope for your answer~~
Mar 10, 2011
Project Member #5 jeff.johnston.mn@gmail.com
You would use getCoreContext().getLimit();
Status: Fixed