I have a doubt about the display tag that would help me a great deal to be solved. Is it possible to use in the display tag a list of primitive types? I would like to use a list of Longs to be displayed, and I have managed that. However, I would also like to be able to sort the list, and that is something that I can't complete. When listing beans, I understand how to do it, but in case of a Long, how do I indicate in the display:column which is the sortable property? Can I sort a list of Longs at all?
I was trying to make this code:
<display:table id="Long" name="list" cellspacing="1" cellpadding="5" requestURIcontext="" requestURI="listall.do" sort="list" pagesize="10">
<display:column titleKey="Year" sortable="true" sortProperty="longValue" media="html">
<a href="" value="/person/listantigosalunosbyclass.do">
<c:param name="class" value="${Long}" /></c:url>">
<c:out value="${Long}" /></a>
</display:column>
</display:table>
But, although the list is well formed, when I try to sort it, it just doesn't work. Any sugestions on how to do this, or indication if it is possible to do this or not, would be apreciated.
TechnoSpike
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user