• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create Dynamic Datatable with sorting functionality

 
Mike Boota
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to JSF and need some help can some one please tell me how to create a dynamic datatable with sorting functionality. I am reading data data from a database table and wants to build the datatable dynamically based on the columns returned. I know how to created a datatble with a fixed number of columns but can't figure out how to create a datatable dynamically with sort functionality. Any small example will greatly help.

Thanks
 
Anirban Mandal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this will help you ...

http://balusc.blogspot.com/2006/06/using-datatables.html
 
jiang aquila
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also have the same question.I have tried to use myfaces component datatable and columns to implement this function.You can find the resource in this link http://wiki.apache.org/myfaces/Dynamic_Columns?highlight=%28columns%29.
But i have another question is how can i implement the pagination in the dynamic columns situation.I
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic