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 70070.0 miles 43932$Explorer 70980.0 miles 43695$Maxima 45891.0 miles 54864$Camry 59278.0 miles 51059$Yukon 57006.0 miles 41805$G35 22550.0 miles 17871$
Corvette 16864.0 miles 18990$Explorer 11742.0 miles 22646$Maxima 79780.0 miles 23872$Camry 11971.0 miles 54537$Yukon 75520.0 miles 36762$G35 34638.0 miles 31804$
Corvette 73948.0 miles 38287$Explorer 9313.0 miles 45371$Maxima 17732.0 miles 22167$Camry 66056.0 miles 50059$Yukon 10883.0 miles 24167$G35 56991.0 miles 15532$
Corvette 20810.0 miles 49942$Explorer 30389.0 miles 26114$Maxima 46790.0 miles 29358$Camry 79750.0 miles 47360$Yukon 52840.0 miles 20300$G35 38703.0 miles 24705$
Corvette 65463.0 miles 43604$Explorer 15112.0 miles 45395$Maxima 30594.0 miles 50991$Camry 30782.0 miles 49281$Yukon 17392.0 miles 47416$G35 23701.0 miles 26734$
Corvette 20756.0 miles 18229$Explorer 13225.0 miles 43960$Maxima 47315.0 miles 32229$Camry 31776.0 miles 43585$Yukon 23146.0 miles 25583$G35 5043.0 miles 15060$
Corvette 61966.0 miles 29505$Explorer 14362.0 miles 36040$Maxima 68909.0 miles 34562$Camry 12912.0 miles 41099$Yukon 22975.0 miles 53556$G35 32160.0 miles 31482$
Corvette 59668.0 miles 27129$Explorer 64309.0 miles 46251$Maxima 24216.0 miles 28142$Camry 55580.0 miles 53072$Yukon 61636.0 miles 19653$G35 61217.0 miles 15273$
Corvette 28264.0 miles 41814$Explorer 32378.0 miles 48737$Maxima 35983.0 miles 41154$Camry 34402.0 miles 38291$Yukon 69419.0 miles 51415$G35 47444.0 miles 25063$


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