开发者

Sorting numbers using struts display tag?

Is it possible? how is it implem开发者_如何转开发ented?


Late response, but don't forget to pass any number-like datatype to the view. A string will be sorted as a String, simple as that.


By default, displaytag sorts with full list. Which is basically client-side sort. Where you hand over the full list to displaytag to display. You just need to set the property i.e. <display:column property="amount" sortable="true" sortName="amount" />.

For the server-side/partial-list sorting, please refer to external sorting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜