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 42391.0 miles 53897$Explorer 42887.0 miles 32101$Maxima 7311.0 miles 49362$Camry 13030.0 miles 21914$Yukon 38863.0 miles 21050$G35 30388.0 miles 44713$
Corvette 69831.0 miles 43767$Explorer 28352.0 miles 29252$Maxima 25557.0 miles 24757$Camry 74266.0 miles 29490$Yukon 13185.0 miles 26184$G35 79148.0 miles 16047$
Corvette 9743.0 miles 17229$Explorer 25790.0 miles 41778$Maxima 59669.0 miles 23426$Camry 9220.0 miles 20092$Yukon 60170.0 miles 38043$G35 49108.0 miles 48848$
Corvette 45452.0 miles 52811$Explorer 45374.0 miles 15561$Maxima 49831.0 miles 36831$Camry 50619.0 miles 15440$Yukon 56052.0 miles 37904$G35 60295.0 miles 54230$
Corvette 63080.0 miles 28545$Explorer 65334.0 miles 25729$Maxima 77643.0 miles 54208$Camry 73061.0 miles 30784$Yukon 51928.0 miles 53983$G35 34778.0 miles 22260$
Corvette 64569.0 miles 30458$Explorer 44059.0 miles 43761$Maxima 46189.0 miles 50859$Camry 50106.0 miles 20556$Yukon 8615.0 miles 52824$G35 65453.0 miles 36645$
Corvette 60643.0 miles 54287$Explorer 15062.0 miles 25491$Maxima 52726.0 miles 38524$Camry 70037.0 miles 46979$Yukon 32954.0 miles 49517$G35 33513.0 miles 35182$
Corvette 78881.0 miles 42380$Explorer 68655.0 miles 39153$Maxima 45127.0 miles 38933$Camry 77120.0 miles 31103$Yukon 25501.0 miles 45255$G35 16253.0 miles 46444$
Corvette 8093.0 miles 23539$Explorer 60999.0 miles 54103$Maxima 79736.0 miles 32318$Camry 68008.0 miles 25580$Yukon 16034.0 miles 46866$G35 6495.0 miles 36518$


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