taab - 2005-11-04

Logged In: YES
user_id=940734

My team also needs this feature. How I see it to be implemented:

  1. From request there should be clean way to get the sorting
    column name (not number, but name, it simplifies the job).
    So somewhere static function String getSortColumn(request,
    String table_id).
    1a. also getPagingStart(request, String table_id),
    getPageLength()
  2. property of table: preSorted="true/false". Default:
    false. If false do as it is now. If true - don't sort
    anything in displaytag.

With this there is nice way of fast and optimized way of
displaying huge results:

  • on DB layer the sorting is done;
  • from DB only the displayed 'paging window' records are
    retrieved.

I strongly vote for this feature to be implemented (in fact
it is rather small change in displaytag).