Hi,

You may use the header (banner) information that tells you the total number
of objects and also from which index to which index it is displaying on the
current page. - see http://displaytag.sourceforge.net/1.2/configuration.html
Why do you need the list index ? Can't you just use the id of the objects or
it's primary key ?
Otherwise you may set on the object the list index when you populate the
list, but that would mean adding another property to your object.

Cheers,
Narcis


On Wed, Jun 3, 2009 at 5:20 PM, Michael C Rosenstein <[email protected]> wrote:

> I'm using external pagination/sorting with a TableDecorator and the
> following table:
>
> <display:table id="ixnlist" name="pageScope.itemList" export="true"
>   decorator="org.mdibl.ctd.pwa.displaytag.decorator.IxnTableWrapper"
>   sort="external">
> ...
> </display:table>
>
> In the table decorator, getListIndex() returns the row number relative
> only to the current page, not to the overall list (i.e., if we're
> displaying 100 objects per page, then getListIndex() returns "1" at the
> top of page 2, not "101").
>
> Is it possible to get the row number reflecting the correct offset?
>
> Thank you.
>
> /mcr
>
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to