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 51451.0 miles 15938$Explorer 67325.0 miles 23141$Maxima 36525.0 miles 40597$Camry 56896.0 miles 42759$Yukon 13879.0 miles 54346$G35 62965.0 miles 49509$
Corvette 14442.0 miles 17642$Explorer 11148.0 miles 47265$Maxima 56410.0 miles 46714$Camry 39612.0 miles 24382$Yukon 20325.0 miles 32080$G35 12820.0 miles 45169$
Corvette 72775.0 miles 29954$Explorer 30487.0 miles 51154$Maxima 17194.0 miles 37446$Camry 28822.0 miles 27359$Yukon 30366.0 miles 29814$G35 64344.0 miles 16377$
Corvette 69347.0 miles 53215$Explorer 43900.0 miles 44819$Maxima 53225.0 miles 28942$Camry 70564.0 miles 31417$Yukon 38237.0 miles 49836$G35 7156.0 miles 37008$
Corvette 19497.0 miles 26318$Explorer 39077.0 miles 45409$Maxima 15853.0 miles 21330$Camry 50579.0 miles 20102$Yukon 77456.0 miles 29946$G35 65979.0 miles 47929$
Corvette 65347.0 miles 52733$Explorer 14725.0 miles 23584$Maxima 76940.0 miles 17848$Camry 45096.0 miles 37135$Yukon 65239.0 miles 17649$G35 8014.0 miles 26910$
Corvette 53646.0 miles 18315$Explorer 20418.0 miles 29512$Maxima 40520.0 miles 28962$Camry 36182.0 miles 54886$Yukon 60611.0 miles 19004$G35 45781.0 miles 43802$
Corvette 28103.0 miles 35553$Explorer 47868.0 miles 42818$Maxima 59138.0 miles 43797$Camry 26187.0 miles 46650$Yukon 40035.0 miles 49844$G35 61194.0 miles 20584$
Corvette 58152.0 miles 51449$Explorer 6314.0 miles 45911$Maxima 41185.0 miles 44328$Camry 25023.0 miles 35197$Yukon 52126.0 miles 37138$G35 33270.0 miles 54902$

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