PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
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
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 27363.0 miles 27378$Explorer 65049.0 miles 42431$Maxima 34452.0 miles 44939$Camry 39955.0 miles 18392$Yukon 10361.0 miles 38562$G35 52753.0 miles 28114$
Corvette 52340.0 miles 53116$Explorer 55568.0 miles 45275$Maxima 32668.0 miles 37108$Camry 54859.0 miles 35512$Yukon 72299.0 miles 51462$G35 36357.0 miles 27027$
Corvette 76569.0 miles 28940$Explorer 53039.0 miles 15666$Maxima 37280.0 miles 47191$Camry 56712.0 miles 26073$Yukon 16357.0 miles 52909$G35 27003.0 miles 46204$
Corvette 55912.0 miles 34845$Explorer 6912.0 miles 30902$Maxima 64555.0 miles 48351$Camry 23146.0 miles 15608$Yukon 63100.0 miles 54619$G35 39300.0 miles 25568$
Corvette 62540.0 miles 30662$Explorer 47718.0 miles 34774$Maxima 27346.0 miles 15369$Camry 52933.0 miles 48800$Yukon 12615.0 miles 19025$G35 74743.0 miles 37841$
Corvette 75545.0 miles 48473$Explorer 71338.0 miles 36804$Maxima 31895.0 miles 35212$Camry 58041.0 miles 39668$Yukon 52503.0 miles 39835$G35 64381.0 miles 29546$
Corvette 18201.0 miles 42401$Explorer 48235.0 miles 20351$Maxima 38636.0 miles 35079$Camry 25414.0 miles 45356$Yukon 65191.0 miles 21909$G35 10205.0 miles 41997$
Corvette 61966.0 miles 24308$Explorer 17018.0 miles 15130$Maxima 24352.0 miles 48450$Camry 73457.0 miles 17257$Yukon 55307.0 miles 15824$G35 35024.0 miles 54982$
Corvette 66574.0 miles 19124$Explorer 32466.0 miles 49959$Maxima 31752.0 miles 48262$Camry 26438.0 miles 18703$Yukon 14669.0 miles 47272$G35 8971.0 miles 16808$


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