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 58008.0 miles 34526$Explorer 6401.0 miles 36827$Maxima 44296.0 miles 34924$Camry 29430.0 miles 26995$Yukon 16900.0 miles 39344$G35 72505.0 miles 50335$
Corvette 77816.0 miles 31607$Explorer 62410.0 miles 52859$Maxima 45783.0 miles 54589$Camry 63496.0 miles 32127$Yukon 71039.0 miles 23817$G35 41003.0 miles 54985$
Corvette 8083.0 miles 18721$Explorer 27923.0 miles 38652$Maxima 58839.0 miles 15937$Camry 16217.0 miles 32629$Yukon 35352.0 miles 21470$G35 36736.0 miles 15797$
Corvette 66102.0 miles 34140$Explorer 52926.0 miles 21544$Maxima 66316.0 miles 28607$Camry 16222.0 miles 16793$Yukon 23171.0 miles 27756$G35 50686.0 miles 34840$
Corvette 70766.0 miles 52934$Explorer 66092.0 miles 34904$Maxima 61029.0 miles 31532$Camry 63137.0 miles 35067$Yukon 6377.0 miles 32483$G35 57915.0 miles 54586$
Corvette 53233.0 miles 44645$Explorer 25247.0 miles 51875$Maxima 12956.0 miles 44848$Camry 64392.0 miles 31445$Yukon 15873.0 miles 22629$G35 57631.0 miles 47673$
Corvette 60518.0 miles 40575$Explorer 75117.0 miles 51514$Maxima 8938.0 miles 47030$Camry 11525.0 miles 29503$Yukon 27302.0 miles 30098$G35 79490.0 miles 23471$
Corvette 6242.0 miles 15991$Explorer 53871.0 miles 53101$Maxima 17094.0 miles 51965$Camry 16894.0 miles 45406$Yukon 72916.0 miles 20181$G35 34827.0 miles 52291$
Corvette 64256.0 miles 45146$Explorer 47929.0 miles 48217$Maxima 37560.0 miles 22346$Camry 75069.0 miles 35887$Yukon 60753.0 miles 34241$G35 19536.0 miles 51780$


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