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 9444.0 miles 19695$Explorer 17408.0 miles 53178$Maxima 60348.0 miles 22274$Camry 54969.0 miles 27934$Yukon 36295.0 miles 22160$G35 13294.0 miles 35727$
Corvette 50443.0 miles 42066$Explorer 64475.0 miles 42124$Maxima 6992.0 miles 21497$Camry 18561.0 miles 27320$Yukon 75591.0 miles 27645$G35 78826.0 miles 48290$
Corvette 64484.0 miles 22720$Explorer 79241.0 miles 29906$Maxima 77139.0 miles 39886$Camry 70978.0 miles 32997$Yukon 28557.0 miles 49003$G35 28466.0 miles 25892$
Corvette 33004.0 miles 35498$Explorer 13392.0 miles 17653$Maxima 30001.0 miles 35963$Camry 54134.0 miles 52307$Yukon 75611.0 miles 44207$G35 60329.0 miles 25011$
Corvette 23291.0 miles 31588$Explorer 45786.0 miles 39177$Maxima 22108.0 miles 52012$Camry 61815.0 miles 42876$Yukon 37014.0 miles 31068$G35 52296.0 miles 37668$
Corvette 51168.0 miles 52878$Explorer 67445.0 miles 33306$Maxima 25717.0 miles 32501$Camry 72742.0 miles 34093$Yukon 27957.0 miles 36156$G35 6375.0 miles 19378$
Corvette 64822.0 miles 46700$Explorer 42022.0 miles 35292$Maxima 24122.0 miles 17308$Camry 26710.0 miles 18751$Yukon 7983.0 miles 47901$G35 34920.0 miles 36283$
Corvette 33867.0 miles 17674$Explorer 7765.0 miles 21456$Maxima 36397.0 miles 25375$Camry 54476.0 miles 35085$Yukon 70922.0 miles 36563$G35 51137.0 miles 18339$
Corvette 5272.0 miles 22887$Explorer 44739.0 miles 40686$Maxima 76390.0 miles 17585$Camry 15188.0 miles 20718$Yukon 35118.0 miles 32106$G35 59387.0 miles 18132$


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