Hi all

I have one question regarding external sorting and paging with partial
lists. In our application the page parameter of the generated href links of
the sorting columns is always 1. So for example when i am on page 6 and i
click on one column, the first page is displayed sorted by this column
instead of page 6.

After debugging into the Displaytag 1.2 code i found this piece of code here
and the comment says that external sorting resets the page parameter to 1.
We would need the actual page parameter in our project.

            // If user want to sort the full table I need to reset the page
number.
            // or if we aren't sorting locally we need to reset the page as
well.
            if (this.tableModel.isSortFullTable() ||
!this.tableModel.isLocalSort())
            {

href.addParameter(encodeParameter(TableTagParameters.PARAMETER_PAGE), 1);
            }

Is this the normal behaviour of displaytag when using external sorting with
partial lists?

regards

Marco
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to