Thai,

You want the sort attribute to the table tag:

http://displaytag.sourceforge.net/tagreference-displaytag-12.html

sort: Use 'page' if you want to sort only visible records, or 'list' if
you want to sort the full list.

So you'd want to use list for your case.

By "interface", what they mean is that sorting a paged list is maybe kind
of a bad thing, so you'd want to provide another way of displaying the
information, e.g. using an alphabetical index so instead of seeing 100
items, you'd only see the items that start with 'S' or something like
that.  But there's no specific interface to which they're referring.  It's
like the discussions about wanting to have checkboxes that are submitted
as you page through a list.  There are ways to do precisely that, but
there are probably better ways to accomplish the same end goal but with a
better interface design.

Thai Dang Vu said:
> Hello everybody,
>
> This page, http://www.displaytag.org/example-sorting.jsp, said that
> displaytag would only sort what were showed on the screen, not the entire
> list (when we use paging). " Only the rows being shown on the page are
> sorted and resorted, so if you use this attribute along with the pagesize
> attribute, it will not resort the entire list. It is assumed that if you
> want to allow the user to resort a large list that will not all fit on a
> single page, then you will provide an interface which is more appropriate
> to that task."
>
> If I want to sort the entire list, how could I do? Could you tell me a
> little bit about the "interface" they mentioned?
>
> Thank you.
>
> Thai
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>


-- 
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

Get out of control, but appear under control. It's not bad to alarm other
people, though--it's good for them.--Hunter S. Thompson


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to