Server-side DataTable Sorting in RichFaces

前端 未结 5 1142
暗喜
暗喜 2021-02-15 14:16

I have a data table with a variable number of columns and a data scroller. How can I enable server side sorting? I prefer that it be fired by the user clicking the column header

5条回答
  •  孤城傲影
    2021-02-15 14:57

    I ended up doing it manually. I adding a support tag to the header text tag, like so.

    
      
    
    

    To get the ascending/descending arrows, I added a css class.

    
      
    
    

提交回复
热议问题