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 17977.0 miles 47689$Explorer 72876.0 miles 52677$Maxima 12197.0 miles 49948$Camry 79130.0 miles 32414$Yukon 33271.0 miles 53589$G35 43955.0 miles 31171$
Corvette 19830.0 miles 27126$Explorer 54215.0 miles 34186$Maxima 35757.0 miles 47461$Camry 13408.0 miles 45849$Yukon 26230.0 miles 30659$G35 15792.0 miles 33744$
Corvette 75831.0 miles 39566$Explorer 23087.0 miles 28721$Maxima 21727.0 miles 29267$Camry 6507.0 miles 17240$Yukon 48812.0 miles 26421$G35 30023.0 miles 19900$
Corvette 9907.0 miles 28541$Explorer 23837.0 miles 52248$Maxima 61912.0 miles 24822$Camry 43053.0 miles 18809$Yukon 73142.0 miles 20357$G35 79859.0 miles 20525$
Corvette 21437.0 miles 42846$Explorer 36067.0 miles 47568$Maxima 32264.0 miles 21620$Camry 39761.0 miles 52674$Yukon 13686.0 miles 22443$G35 37906.0 miles 21304$
Corvette 54996.0 miles 22586$Explorer 36924.0 miles 29560$Maxima 41542.0 miles 33749$Camry 44251.0 miles 47253$Yukon 59515.0 miles 26498$G35 6534.0 miles 47125$
Corvette 66320.0 miles 16338$Explorer 30894.0 miles 43988$Maxima 47283.0 miles 27972$Camry 46926.0 miles 52721$Yukon 79642.0 miles 30722$G35 34240.0 miles 40886$
Corvette 65770.0 miles 29568$Explorer 23874.0 miles 53912$Maxima 40947.0 miles 19936$Camry 20988.0 miles 53509$Yukon 18382.0 miles 37090$G35 10889.0 miles 44035$
Corvette 66409.0 miles 34080$Explorer 49885.0 miles 28876$Maxima 20728.0 miles 42156$Camry 51271.0 miles 25357$Yukon 44081.0 miles 52946$G35 74667.0 miles 19075$


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