PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
Tag Information

The tag allows dynamic columns functionality in a rich:dataTable. It is used like a UIData component which iterates through a data model to create columns.

The component uses a standard value/var pair of attributes to provide binding to data model and request scoped variable for iteration through this data model.

The next simple example shows you a simple use-case where ten types of cars are created and a list of models with prices is generated for each type of car. In the dataTable cars are grouped by type in a separate columns.

DataTable Columns example
Cars Available
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 13845.0 miles 38924$Explorer 26853.0 miles 16679$Maxima 53934.0 miles 25356$Camry 42893.0 miles 31431$Yukon 60627.0 miles 25695$G35 41656.0 miles 43629$
Corvette 50880.0 miles 47585$Explorer 7127.0 miles 37541$Maxima 52457.0 miles 22697$Camry 50586.0 miles 34138$Yukon 75087.0 miles 53569$G35 19919.0 miles 24730$
Corvette 8543.0 miles 38647$Explorer 56798.0 miles 26577$Maxima 42930.0 miles 16865$Camry 32179.0 miles 36576$Yukon 36940.0 miles 52022$G35 76731.0 miles 43984$
Corvette 70387.0 miles 21572$Explorer 29563.0 miles 17670$Maxima 29807.0 miles 39561$Camry 48340.0 miles 51006$Yukon 39637.0 miles 30703$G35 26310.0 miles 34829$
Corvette 19499.0 miles 49711$Explorer 32387.0 miles 51050$Maxima 16174.0 miles 15286$Camry 8932.0 miles 35276$Yukon 34538.0 miles 18886$G35 12991.0 miles 30035$
Corvette 79717.0 miles 26153$Explorer 50831.0 miles 48734$Maxima 44403.0 miles 23266$Camry 57923.0 miles 30606$Yukon 60236.0 miles 15544$G35 61037.0 miles 16291$
Corvette 17574.0 miles 18061$Explorer 60251.0 miles 35971$Maxima 27520.0 miles 26728$Camry 12008.0 miles 33113$Yukon 70817.0 miles 31413$G35 53223.0 miles 49367$
Corvette 50157.0 miles 46428$Explorer 67716.0 miles 26690$Maxima 72163.0 miles 37352$Camry 74429.0 miles 16969$Yukon 13754.0 miles 28183$G35 12621.0 miles 54703$
Corvette 16122.0 miles 22615$Explorer 66337.0 miles 42399$Maxima 38526.0 miles 49675$Camry 64156.0 miles 50721$Yukon 45951.0 miles 43980$G35 19358.0 miles 35471$


View Source

Additionally as you see Sorting Feature could be added to this component in the same way as for simple rich:column.

In this example every column provides sorting by car prices

RichFaces Wiki RichFaces Project Site