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 44820.0 miles 45697$Explorer 41084.0 miles 51433$Maxima 52563.0 miles 48971$Camry 76194.0 miles 21636$Yukon 22291.0 miles 46279$G35 14776.0 miles 54505$
Corvette 42406.0 miles 24993$Explorer 40877.0 miles 29049$Maxima 69136.0 miles 51232$Camry 16024.0 miles 46462$Yukon 29270.0 miles 44261$G35 10060.0 miles 18645$
Corvette 43072.0 miles 16123$Explorer 30574.0 miles 53178$Maxima 23650.0 miles 17791$Camry 77359.0 miles 40622$Yukon 50555.0 miles 42857$G35 20146.0 miles 20016$
Corvette 24489.0 miles 23956$Explorer 19054.0 miles 21637$Maxima 63874.0 miles 15125$Camry 52486.0 miles 16002$Yukon 22016.0 miles 23767$G35 70056.0 miles 33211$
Corvette 19331.0 miles 49975$Explorer 23988.0 miles 38128$Maxima 33394.0 miles 36368$Camry 45209.0 miles 39416$Yukon 77046.0 miles 25692$G35 54710.0 miles 31000$
Corvette 49948.0 miles 39756$Explorer 28286.0 miles 16205$Maxima 5422.0 miles 29180$Camry 14871.0 miles 27168$Yukon 43113.0 miles 37016$G35 30812.0 miles 44653$
Corvette 53294.0 miles 28739$Explorer 59992.0 miles 18711$Maxima 7108.0 miles 47149$Camry 63397.0 miles 31108$Yukon 45840.0 miles 33047$G35 53354.0 miles 32171$
Corvette 56649.0 miles 33380$Explorer 38023.0 miles 45536$Maxima 43849.0 miles 27312$Camry 27014.0 miles 20082$Yukon 78538.0 miles 19816$G35 49725.0 miles 47571$
Corvette 78495.0 miles 32611$Explorer 7194.0 miles 18622$Maxima 9114.0 miles 41894$Camry 47921.0 miles 22047$Yukon 13307.0 miles 20838$G35 54601.0 miles 39023$

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