wanjidong / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

need to add a serial number for a table #244

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by karthick...@gmail.com on 9 Feb 2010 at 4:26

GoogleCodeExporter commented 8 years ago
What do you mean by "add serial number for the table"?

Original comment by jeff.johnston.mn@gmail.com on 9 Feb 2010 at 4:37

GoogleCodeExporter commented 8 years ago
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

Original comment by karthick...@gmail.com on 10 Feb 2010 at 4:07

GoogleCodeExporter commented 8 years ago
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.

Original comment by jeff.johnston.mn@gmail.com on 11 Feb 2010 at 5:59

GoogleCodeExporter commented 8 years ago
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~~

Original comment by piaoxi...@gmail.com on 3 Mar 2010 at 3:16

GoogleCodeExporter commented 8 years ago
You would use getCoreContext().getLimit();

Original comment by jeff.johnston.mn@gmail.com on 10 Mar 2011 at 9:53