| Issue 253: | also about the serial number | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What is the expected output? What do you see instead? I've noticed the Issue 244 on this wiki.I have the same problem with him.like this: 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 I've also 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 12, 2010
I need a page number and also the pagesize in the CellEditor,so i can gain the serial number from the last number of the page before. For example: if the serial number goes from 1 to 10 in the firse page,then i want to the number goes from 11 to 20 in page two.
Mar 12, 2010
Ok, I see now... If you just want the rowcount to auto-increment taking in account the page count you can override the default in your preferences. html.rowcount.includePagination=true https://code.google.com/p/jmesa/wiki/Preferences If you still need to get at the limit you can get it from the CoreContext. To get that just extend from the AbstractCellEditor and then you can do a getCoreContext() on that class. On the CoreContext you can get at the Limit.
Mar 12, 2010
Thank you for your help! I'll try it now!
Apr 13, 2010
(No comment was entered for this change.)
Status:
Invalid
|
The rowcount is passed to the CellEditor. Do you need something else? Also, if you are using the tags there is a 'rowcount' variable passed to the page scope that you can use to display the current row. <jmesa:column property="count">${rowcount}</jmesa:column>