PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
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
Corvette 49084.0 miles 41480$Explorer 23972.0 miles 16015$Maxima 69151.0 miles 20225$Camry 69148.0 miles 31903$Yukon 62980.0 miles 29771$G35 29688.0 miles 20958$
Corvette 61326.0 miles 43903$Explorer 24737.0 miles 44211$Maxima 37128.0 miles 22368$Camry 34860.0 miles 50658$Yukon 21510.0 miles 32595$G35 12748.0 miles 30662$
Corvette 75619.0 miles 23594$Explorer 42223.0 miles 45650$Maxima 34830.0 miles 27967$Camry 9121.0 miles 54775$Yukon 55478.0 miles 52539$G35 39225.0 miles 20979$
Corvette 56353.0 miles 22214$Explorer 20657.0 miles 47127$Maxima 60099.0 miles 18076$Camry 24528.0 miles 25243$Yukon 25751.0 miles 32960$G35 26938.0 miles 22672$
Corvette 60595.0 miles 27099$Explorer 46408.0 miles 22056$Maxima 42844.0 miles 30775$Camry 21265.0 miles 30993$Yukon 53753.0 miles 49996$G35 16285.0 miles 40617$
Corvette 44247.0 miles 18032$Explorer 38314.0 miles 53694$Maxima 26843.0 miles 31191$Camry 29959.0 miles 30479$Yukon 25976.0 miles 30038$G35 37290.0 miles 17795$
Corvette 35797.0 miles 46556$Explorer 29306.0 miles 27476$Maxima 5118.0 miles 36077$Camry 24967.0 miles 41456$Yukon 8100.0 miles 26520$G35 79126.0 miles 37385$
Corvette 15444.0 miles 47066$Explorer 65934.0 miles 16672$Maxima 32975.0 miles 47164$Camry 38546.0 miles 20292$Yukon 50379.0 miles 46891$G35 44947.0 miles 41760$
Corvette 11922.0 miles 24118$Explorer 67494.0 miles 51384$Maxima 33537.0 miles 29903$Camry 77018.0 miles 50151$Yukon 30749.0 miles 40083$G35 55523.0 miles 49729$

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