homena / jmesa

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

also about the serial number #253

Closed GoogleCodeExporter closed 9 years ago

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

Original issue reported on code.google.com by piaoxi...@gmail.com on 8 Mar 2010 at 6:30

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

Original comment by jeff.johnston.mn@gmail.com on 11 Mar 2010 at 2:55

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

Original comment by piaoxi...@gmail.com on 12 Mar 2010 at 8:29

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

http://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.

Original comment by jeff.johnston.mn@gmail.com on 12 Mar 2010 at 6:30

GoogleCodeExporter commented 9 years ago
Thank you  for your help!
I'll try it now!

Original comment by piaoxi...@gmail.com on 13 Mar 2010 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by jeff.johnston.mn@gmail.com on 13 Apr 2010 at 7:02