>
> I brought this up earlier on the list
> (http://sourceforge.net/mailarchive/message.php?msg_id=1025796
> 8). Does anyone on the development team have any thoughts on
> this? Is this as intended?
It's kind of a doozy. The problem is that the table generates all of
the rows, and THEN sorts them. (For now, we can't sort the rows before
rendering, because the rows may be sorted on the value of a column whose
contents are generated via JSP.) You really need a 2 pass solution in
order to do the numbering.
It's not a good suggestion, but I would at least look at using CSS,
<ol>, or javascript to generate the row numbers.
>
> --Norm
>
> Matt Hughes wrote:
> > I have a simple table set up like this
> >
> > <display:table name="documents" pagesize="5" id="doc">
> > <display:column sortable="false"><c:out
> value="${doc_rowNum}"</display:column>
> > <display:column sortable="true" title="Document Title"
> > property="title" /> </display:table>
> >
> > Everything works great but the rowNum implicit object sorts
> along with
> > the rest of the rows and I don't want it to. Basically I'll have
> > something like this:
> >
> > 1 Thesis
> > 2 Dissertation
> > 3 Book Report
> > 4 Bills to Pay
> > 5 To Do List
> >
> > If I sort by document title, the list looks like this
> >
> > 4 Bills to Pay
> > 3 Book Report
> > 2 Dissertation
> > 1 Thesis
> > 5 To Do List
> >
> > Is there any way to get the row number be absolutely numbered
> > 1,2,3,4,5 rather than relative when the list is sorted.
> >
> >
> > -------------------------------------------------------
> > The SF.Net email is sponsored by: Beat the post-holiday blues Get a
> > FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> > It's fun and FREE -- well,
> almost....http://www.thinkgeek.com/sfshirt
> > _______________________________________________
> > displaytag-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user