*
The moose likes JSF and the fly likes Create Dynamic Datatable with sorting functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Create Dynamic Datatable with sorting functionality" Watch "Create Dynamic Datatable with sorting functionality" New topic
Author

Create Dynamic Datatable with sorting functionality

Mike Boota
Ranch Hand

Joined: Jul 18, 2002
Posts: 82
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


MB<br />Sun Certified Programmer for Java2 Platform
Anirban Mandal
Greenhorn

Joined: Sep 28, 2007
Posts: 5
I think this will help you ...

http://balusc.blogspot.com/2006/06/using-datatables.html
jiang aquila
Greenhorn

Joined: Dec 13, 2007
Posts: 1
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Create Dynamic Datatable with sorting functionality
 
Similar Threads
Adding Dynamic Datatable to Panel Grid
JSF datatable with dynamic columns
h:dataTable creating dynamically
validating t:columns together
Display Tag css issues in IE and FF