开发者

Sorting numbers using struts display tag?

开发者 https://www.devze.com 2023-01-23 10:29 出处:网络
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, di

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

精彩评论

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