I'm not sure of what you think it's wrong, but for paginated lists, you order data and you provide sorting information to displaytag whichs uses it for diplaying header column info. So, you provide sorting info with these two methods of PaginatedList interface:
String getSortCriterion();
SortOrderEnum getSortDirection();
On 11/7/06, SourceForge.net <
[EMAIL PROTECTED]> wrote:
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3999898
By: forysiak
Hi,
I'm using implementation of PaginatedList with displayTag and I have some problems
to set initial sorting order for column.
By default param 'dir' in header's URL is set to 'asc' and setting 'defaultOrder'
to 'descending' in column declaration das not change a thing, parameter
'defaultOrder' seems to be ignored for paginated lists.
Is it a bug or maybe I'm doing something wrong?
I've checked the source code and in HtmlTableWriter.getSortingHref() for
paginatedList dirParam is always set to 'asc' (defaulOrder param is not taken
under consideration):
<code>
if ( headerCell.isAlreadySorted())
{
dirParam = tableModel.isSortOrderAscending()
? properties.getPaginationDescValue() : properties
.getPaginationAscValue();
}
else
{
dirParam = properties.getPaginationAscValue();
}
</code>
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=249317
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user