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 54596.0 miles 20090$Explorer 24792.0 miles 44280$Maxima 43541.0 miles 43578$Camry 65956.0 miles 15089$Yukon 24603.0 miles 52031$G35 35673.0 miles 40544$
Corvette 21916.0 miles 34509$Explorer 11197.0 miles 54058$Maxima 50933.0 miles 48571$Camry 12388.0 miles 21644$Yukon 9805.0 miles 51779$G35 34115.0 miles 15175$
Corvette 8879.0 miles 37637$Explorer 72939.0 miles 21391$Maxima 9001.0 miles 23367$Camry 55830.0 miles 18708$Yukon 73565.0 miles 53228$G35 14699.0 miles 52306$
Corvette 50372.0 miles 42178$Explorer 48783.0 miles 24755$Maxima 66809.0 miles 21728$Camry 73414.0 miles 40391$Yukon 19138.0 miles 26149$G35 23912.0 miles 39054$
Corvette 47680.0 miles 40644$Explorer 79093.0 miles 33088$Maxima 14914.0 miles 54982$Camry 23635.0 miles 48018$Yukon 75442.0 miles 22544$G35 58751.0 miles 34408$
Corvette 19520.0 miles 20604$Explorer 42246.0 miles 51990$Maxima 71582.0 miles 24550$Camry 12637.0 miles 28510$Yukon 14226.0 miles 17650$G35 28612.0 miles 41910$
Corvette 72011.0 miles 32251$Explorer 59956.0 miles 47964$Maxima 12328.0 miles 54551$Camry 20496.0 miles 15988$Yukon 69460.0 miles 19893$G35 32884.0 miles 51511$
Corvette 30876.0 miles 21005$Explorer 58124.0 miles 50896$Maxima 18221.0 miles 40235$Camry 45469.0 miles 19047$Yukon 40013.0 miles 49488$G35 32630.0 miles 16144$
Corvette 19863.0 miles 16995$Explorer 60190.0 miles 50055$Maxima 45307.0 miles 46179$Camry 59047.0 miles 32333$Yukon 37937.0 miles 33538$G35 35060.0 miles 35248$

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