| Issue 244: | need to add a serial number for a table | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Feb 9, 2010
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
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
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~~ |