【发布时间】:2014-07-09 04:21:28
【问题描述】:
我正在尝试在显示标签中使用排序选项。在网上看到几个例子,明白 sortable="true" 将使列可排序。将 sortable="true" 添加到列中会使列超链接,但 onclick 没有任何反应。我的意思是这两种方式都没有排序。有人可以告诉我。这就是代码的样子。
<display-el:table sort="external" defaultsort="1" htmlId="tbl" id="row" name="tblItems" class="default" style="width:100%" export="false" cellspacing="1" cellpadding="1" pagesize="10" partialList="true" size="resultSize" decorator="abc.web.testIncludeDecorator" requestURI="${pageContext.request.contextPath}/../${requestScope.requestURI}">
<display-el:column property="test1" title="abc" sortable="true" class="defaultTest" style="width:2%;" />
<display-el:column property="crid" title="def" sortable="true" class="defaultTest" style="width:2%;" />
<display-el:column property="sample" title="ghi" sortable="true" class="defaultTest" style="width:2%;" />
</display-el:table>
【问题讨论】:
-
非常感谢任何输入。
标签: java jstl jsp-tags displaytag