<[email protected]> <[email protected]> Message-ID: <[email protected]> X-Sender: [email protected] Received: from user-0cdfo9f.cable.mindspring.com [24.215.225.47] with HTTP/1.1 (POST); Thu, 04 Jun 2009 15:37:40 -0400 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit
Nope, row_num behaves just like getListIndex()--gives the number of the row in the displayed page, but doesn't consider the overall externally paginated list. On Thu, 4 Jun 2009 09:30:26 +0300, Paslaru Narcis <[email protected]> wrote: > Have you tried using the row_num variable ? > > http://displaytag.sourceforge.net/1.2/tut_implicitobjects.html > > Hope this helps. > > Cheers, > Narcis > > > On Wed, Jun 3, 2009 at 8:13 PM, Michael C Rosenstein <[email protected]> > wrote: > >> Thanks, Narcis. I need the list index (or some other row number field) >> so that I can number each row consecutively--1,2,3,...101, 102,... >> (object ids/primary keys wouldn't help). >> >> Is there a way to get the values from the paging banner into a >> TableDecorator to use as an offset for row numbering? >> >> >> > 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 >> > >> >> >> >> >> > ------------------------------------------------------------------------------ >> 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

