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 77509.0 miles 37415$Explorer 26057.0 miles 39560$Maxima 16841.0 miles 18772$Camry 33833.0 miles 32289$Yukon 38610.0 miles 19850$G35 17055.0 miles 54554$
Corvette 69796.0 miles 35372$Explorer 20566.0 miles 24235$Maxima 62349.0 miles 48256$Camry 16300.0 miles 52295$Yukon 36718.0 miles 24207$G35 40841.0 miles 25812$
Corvette 25230.0 miles 18557$Explorer 17094.0 miles 17693$Maxima 32746.0 miles 33124$Camry 29868.0 miles 19770$Yukon 27531.0 miles 28472$G35 50853.0 miles 30039$
Corvette 40141.0 miles 26283$Explorer 58828.0 miles 46545$Maxima 31228.0 miles 53602$Camry 28370.0 miles 45867$Yukon 42181.0 miles 49308$G35 6232.0 miles 42798$
Corvette 10591.0 miles 39573$Explorer 47771.0 miles 32152$Maxima 28625.0 miles 25303$Camry 8776.0 miles 16457$Yukon 17983.0 miles 34749$G35 27196.0 miles 28578$
Corvette 56612.0 miles 43839$Explorer 38957.0 miles 37877$Maxima 71132.0 miles 44123$Camry 69336.0 miles 36122$Yukon 58952.0 miles 26683$G35 70845.0 miles 50605$
Corvette 22772.0 miles 52007$Explorer 23578.0 miles 30562$Maxima 48970.0 miles 20684$Camry 66813.0 miles 38517$Yukon 25789.0 miles 49160$G35 34838.0 miles 50708$
Corvette 31087.0 miles 48354$Explorer 17522.0 miles 53635$Maxima 50960.0 miles 48670$Camry 6297.0 miles 35356$Yukon 45181.0 miles 16741$G35 49433.0 miles 39337$
Corvette 61488.0 miles 35507$Explorer 60630.0 miles 49442$Maxima 18015.0 miles 39469$Camry 39186.0 miles 20899$Yukon 34458.0 miles 44176$G35 13407.0 miles 24695$


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