I sent this message to the user list, which seems to be more appropriated. But,
as I did not receive any answer, and since I saw some related questions without
answer, I'm sending this message to developers list. If it is a too big fault,
my apologies, I won't try this any more.
----
Hi, all!
I"m trying to use displaytag with external paging and sorting. I've implemented
the PaginatedList interface and trying to display an instance of that
implemented
class through the following code:
<display:table requestURI="autoridades.do?sender=btPaginar"
name="sessionScope.autoridades" class="padrao" sort="external" pagesize="10"
id="a" cellpadding="0" cellspacing="0" >
<display:column title="Autoridade" sortable="true" sortName="Autoridade"
headerClass="sortable">
${a.nome}
</display:column>
<display:column title="Cargo" sortable="true" sortName="Cargo"
headerClass="sortable">
${a.cargo}
</display:column>
<display:column title="Aniversário" sortable="true"
headerClass="sortable">
<c:if test="${a.diaAniversario > 0 && a.mesAniversario > 0}">
${a.diaAniversario}/${a.mesAniversario}
</c:if>
</display:column>
<display:column class="largura70" media="html" title=" "
headerClass="sortable">
<a href="javascript:
go(document.AutoridadesForm,'btVisualizar${a.codigo}')"><img
src="./images/5a.gif"
border="0" alt="Visualizar" /></a>
<a href="javascript:
go(document.AutoridadesForm,'btEditar${a.codigo}')"><img
src="./images/editar.gif" border="0" alt="Editar" /></a>
<a href="javascript:
go(document.AutoridadesForm,'btExcluir${a.codigo}')"><img
src="./images/cancelar.gif" border="0" alt="Excluir" /></a>
</display:column>
The table is displayed and paginations works fine, but sorting does not, as
the link when a column head is clicked does not contain "sort=name", rather
it shows a "sort=", an empty sort parameter, and without it it's not possible
to the application to figure out what criterion should be used to sort the list.
Does anyone has a sugestion about what is going on?
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
-------------------------------------------------------------------------
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-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel