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 23823.0 miles 54437$Explorer 78707.0 miles 48184$Maxima 59125.0 miles 25780$Camry 5302.0 miles 48822$Yukon 39073.0 miles 37350$G35 43767.0 miles 33134$
Corvette 77357.0 miles 21458$Explorer 43723.0 miles 33055$Maxima 54621.0 miles 24684$Camry 77566.0 miles 41926$Yukon 79884.0 miles 39523$G35 25696.0 miles 35322$
Corvette 58135.0 miles 31492$Explorer 15972.0 miles 28120$Maxima 37796.0 miles 45068$Camry 24645.0 miles 51817$Yukon 26422.0 miles 31436$G35 11698.0 miles 33935$
Corvette 74830.0 miles 36496$Explorer 64752.0 miles 28441$Maxima 13528.0 miles 52893$Camry 63420.0 miles 38031$Yukon 70624.0 miles 15243$G35 67472.0 miles 25753$
Corvette 13927.0 miles 20382$Explorer 73545.0 miles 41929$Maxima 62078.0 miles 50041$Camry 37145.0 miles 53951$Yukon 74461.0 miles 49753$G35 68819.0 miles 21763$
Corvette 59585.0 miles 39481$Explorer 46881.0 miles 33485$Maxima 64223.0 miles 32113$Camry 39468.0 miles 48828$Yukon 37256.0 miles 41968$G35 37359.0 miles 30868$
Corvette 60183.0 miles 27751$Explorer 54892.0 miles 47583$Maxima 13625.0 miles 50153$Camry 67072.0 miles 27285$Yukon 37912.0 miles 39267$G35 27536.0 miles 31452$
Corvette 37988.0 miles 35699$Explorer 30737.0 miles 33641$Maxima 39359.0 miles 18809$Camry 55013.0 miles 26522$Yukon 77327.0 miles 19550$G35 62484.0 miles 43597$
Corvette 47631.0 miles 24611$Explorer 77355.0 miles 38901$Maxima 75422.0 miles 22466$Camry 68782.0 miles 23068$Yukon 31584.0 miles 34234$G35 18754.0 miles 48155$

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