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 41347.0 miles 18561$Explorer 9789.0 miles 27239$Maxima 16128.0 miles 42375$Camry 63442.0 miles 50999$Yukon 22418.0 miles 53403$G35 8827.0 miles 54519$
Corvette 40376.0 miles 35482$Explorer 47301.0 miles 47121$Maxima 38900.0 miles 36420$Camry 24396.0 miles 20858$Yukon 30653.0 miles 51230$G35 28998.0 miles 41670$
Corvette 26415.0 miles 50851$Explorer 36087.0 miles 46641$Maxima 72112.0 miles 29106$Camry 42561.0 miles 16569$Yukon 26138.0 miles 16574$G35 11878.0 miles 49447$
Corvette 52182.0 miles 31144$Explorer 47623.0 miles 22372$Maxima 67183.0 miles 15716$Camry 50761.0 miles 37286$Yukon 69943.0 miles 50913$G35 52498.0 miles 54279$
Corvette 9143.0 miles 29911$Explorer 14811.0 miles 50113$Maxima 45643.0 miles 35132$Camry 62243.0 miles 30148$Yukon 58471.0 miles 43972$G35 64807.0 miles 17169$
Corvette 39656.0 miles 44048$Explorer 26161.0 miles 24459$Maxima 52264.0 miles 31092$Camry 7649.0 miles 27385$Yukon 75142.0 miles 32895$G35 54385.0 miles 45039$
Corvette 55434.0 miles 52308$Explorer 7327.0 miles 23852$Maxima 29650.0 miles 20254$Camry 18113.0 miles 38078$Yukon 11695.0 miles 15510$G35 5076.0 miles 48072$
Corvette 6471.0 miles 49456$Explorer 67687.0 miles 50505$Maxima 60965.0 miles 32752$Camry 41892.0 miles 29993$Yukon 72360.0 miles 24095$G35 52602.0 miles 37508$
Corvette 75360.0 miles 36396$Explorer 10258.0 miles 44838$Maxima 11553.0 miles 26044$Camry 24362.0 miles 33337$Yukon 45390.0 miles 15660$G35 40746.0 miles 46600$

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