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 69025.0 miles 35550$Explorer 41517.0 miles 43642$Maxima 47901.0 miles 23242$Camry 36868.0 miles 39635$Yukon 62223.0 miles 30817$G35 24720.0 miles 46804$
Corvette 36619.0 miles 41753$Explorer 15978.0 miles 27655$Maxima 32325.0 miles 42144$Camry 57227.0 miles 18077$Yukon 44661.0 miles 30383$G35 18153.0 miles 53295$
Corvette 21392.0 miles 50148$Explorer 5441.0 miles 19297$Maxima 49300.0 miles 20875$Camry 76714.0 miles 30571$Yukon 54818.0 miles 17894$G35 56338.0 miles 20969$
Corvette 47561.0 miles 46949$Explorer 72947.0 miles 39677$Maxima 67633.0 miles 32861$Camry 26906.0 miles 38157$Yukon 47687.0 miles 26501$G35 40611.0 miles 22347$
Corvette 62268.0 miles 16689$Explorer 77850.0 miles 46841$Maxima 24167.0 miles 29191$Camry 5446.0 miles 45539$Yukon 5578.0 miles 52336$G35 45426.0 miles 29765$
Corvette 11553.0 miles 35497$Explorer 56143.0 miles 21921$Maxima 27285.0 miles 53772$Camry 69560.0 miles 17961$Yukon 29400.0 miles 40686$G35 34269.0 miles 47942$
Corvette 47908.0 miles 46637$Explorer 34718.0 miles 19473$Maxima 19432.0 miles 41749$Camry 17085.0 miles 36306$Yukon 66654.0 miles 36453$G35 51643.0 miles 25966$
Corvette 32902.0 miles 25927$Explorer 9135.0 miles 50927$Maxima 67995.0 miles 45291$Camry 40297.0 miles 37066$Yukon 67968.0 miles 24350$G35 62951.0 miles 41890$
Corvette 65858.0 miles 34613$Explorer 78060.0 miles 35903$Maxima 55038.0 miles 42118$Camry 14174.0 miles 15125$Yukon 74445.0 miles 51983$G35 28365.0 miles 27927$

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