Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4142971
By: downunder_al

Actually, I spoke too soon. All that was happening was that the defaultSortOrder
was being set. When that happened, it was possible to sort the default column
both asc and desc. However, it was impossible to sort any other columns.

I have re-read the documentation (several times) and I think I'm doing it right.
Here is the current version:
 
I am using the value list pattern - that is, the form for displaying in the
table implements org.displaytag.pagination.PaginatedList correctly. That means
that I don't need to do the sort="external" thing.

The table:
<display:table name="masterTransactionPagedList" defaultsort="1" id="element"
requestURI="MasterTransactionList.do"
decorator="com.agl.mdh.display.decorators.MasterTransactionListDecorator">
<display:column property="market" sortable="true"  title="Market" />
</display:table>

I have tried it with the sortName value set, but the link rendered by the sort
href never seems to use it - i.e. it always looks like this:
http://localhost:8080/portal/action/MasterTransactionList.do?transactionID=&sort
=market&dir=asc (I have trimmed some of the other irrelevant parameters) Which
is as the documentation suggests it should look
- http://foo.bar.com/context/requestUri?sort=name&dir=asc&originalParameters=ori
ginalValues. )

The page number links work OK:
http://localhost:8080/portal/action/MasterTransactionList.do?sort=market&superTr
anType=B2B&dir=asc&page=2 (which again seems correct)

It's just that the sorting never triggers - so the link from the header is 
always
set to be dir=asc. Interestingly, the css class which is triggered when the
column is sorted, is never triggered (and it was triggered when I had the 
defaultsort
property set). The result of this is that when I click the link, the back end
picks up the correct column to sort by, but the sorting href never changes to
"desc".

I am completely stumped by this. I really like the library (and really don't
want to have to spend ages finding another sorting and paging library (or 
writing
my own)), but I'm getting desperate. Is it possible that there is a bug in the
library? I will have a bit of a poke around in the code and see if I can figure
it out.

______________________________________________________________________
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=249318

-------------------------------------------------------------------------
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

Reply via email to