Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  6] [ 3]  / answers: 1 / hits: 21594  / 12 Years ago, mon, april 2, 2012, 12:00:00

I'm building a WebApp in jsf 2.0 and it's about storing information and displaying it on the screen. so I've put in some http://java.sun.com/jsf/html dataTables to disply some lists. My Java code returns a List and then displays them on screen. but now I have to Sort the columns alphabetically. I believe there's no built in way of doing this, so i'm goign to have to look elsewhere for the task.



I came across This dataTables example, it's pretty awesome but I think I can't give it a List and display the list.



I also came across BalusC's way of incorporating the sorting intot he DataTbal, which is nice, I'm looking for this, but maybe with a jQuery IU.



Is there such an API that can meet my needs? can you point me in the right direction, or do you suggest one? I'd really want one that I just hand over the list in Java, but If I must, I can modify the data to comply with JSON format or some other...


More From » java

 Answers
80

There are several component librarys on top of jsf-2.0.



Primefaces for instance has a very powerful datatable component with sorting / filtering options. Primefaces is very easy to integrate into your project and comes with a lot of themes (or you can create your own theme).



Just have a look at the showcase and the documentation.



Other popular component libraries are Richfaces (as per comment datatable sorting not supported) and Icefaces.


[#86472] Friday, March 30, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irvinjovannix

Total Points: 416
Total Questions: 94
Total Answers: 117

Location: South Korea
Member since Sun, Aug 8, 2021
3 Years ago
;