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 61657.0 miles 44110$Explorer 77896.0 miles 27964$Maxima 45689.0 miles 18531$Camry 10948.0 miles 32718$Yukon 64380.0 miles 24224$G35 41174.0 miles 52555$
Corvette 21761.0 miles 18595$Explorer 41071.0 miles 48501$Maxima 10904.0 miles 32908$Camry 26268.0 miles 25712$Yukon 50740.0 miles 23206$G35 49087.0 miles 43620$
Corvette 26477.0 miles 27910$Explorer 28502.0 miles 15312$Maxima 33668.0 miles 30016$Camry 48278.0 miles 23365$Yukon 42640.0 miles 15921$G35 55960.0 miles 51571$
Corvette 13741.0 miles 42187$Explorer 68623.0 miles 36545$Maxima 44308.0 miles 28171$Camry 74414.0 miles 25827$Yukon 40885.0 miles 24821$G35 43952.0 miles 44904$
Corvette 45875.0 miles 54071$Explorer 59003.0 miles 53430$Maxima 62015.0 miles 44422$Camry 34467.0 miles 48505$Yukon 27153.0 miles 16001$G35 58935.0 miles 21446$
Corvette 24540.0 miles 50980$Explorer 44781.0 miles 20230$Maxima 26562.0 miles 38278$Camry 52025.0 miles 45454$Yukon 23146.0 miles 53589$G35 16156.0 miles 40197$
Corvette 9555.0 miles 38402$Explorer 32810.0 miles 19654$Maxima 9272.0 miles 21985$Camry 25775.0 miles 49497$Yukon 46516.0 miles 36564$G35 6451.0 miles 39739$
Corvette 68231.0 miles 44965$Explorer 49170.0 miles 16845$Maxima 48123.0 miles 47351$Camry 79676.0 miles 42186$Yukon 10770.0 miles 54774$G35 47126.0 miles 29265$
Corvette 66930.0 miles 38126$Explorer 58900.0 miles 38666$Maxima 20009.0 miles 46874$Camry 55103.0 miles 17116$Yukon 74658.0 miles 41860$G35 41896.0 miles 47945$


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