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 18027.0 miles 16723$Explorer 22979.0 miles 24232$Maxima 37367.0 miles 53746$Camry 9807.0 miles 49152$Yukon 45104.0 miles 22019$G35 53217.0 miles 18833$
Corvette 6700.0 miles 54088$Explorer 6641.0 miles 28032$Maxima 27842.0 miles 17453$Camry 73186.0 miles 23329$Yukon 41567.0 miles 39567$G35 27315.0 miles 26858$
Corvette 32748.0 miles 52068$Explorer 55950.0 miles 31048$Maxima 38500.0 miles 25707$Camry 67251.0 miles 19033$Yukon 8663.0 miles 25221$G35 46966.0 miles 21159$
Corvette 62528.0 miles 48390$Explorer 44401.0 miles 22705$Maxima 26855.0 miles 35134$Camry 67159.0 miles 49619$Yukon 62202.0 miles 46948$G35 29709.0 miles 32149$
Corvette 31939.0 miles 49655$Explorer 24405.0 miles 20810$Maxima 78695.0 miles 44049$Camry 11308.0 miles 44164$Yukon 19808.0 miles 31497$G35 32015.0 miles 19094$
Corvette 5836.0 miles 39858$Explorer 48164.0 miles 28230$Maxima 62997.0 miles 22993$Camry 16701.0 miles 39755$Yukon 48169.0 miles 27325$G35 42704.0 miles 43606$
Corvette 60725.0 miles 52500$Explorer 10722.0 miles 50283$Maxima 66446.0 miles 23353$Camry 46885.0 miles 40844$Yukon 69805.0 miles 29035$G35 31402.0 miles 53028$
Corvette 49080.0 miles 30177$Explorer 71871.0 miles 24418$Maxima 35895.0 miles 16776$Camry 5018.0 miles 15924$Yukon 54974.0 miles 28382$G35 62888.0 miles 40333$
Corvette 64592.0 miles 44910$Explorer 32549.0 miles 19619$Maxima 17726.0 miles 16192$Camry 19452.0 miles 48756$Yukon 21432.0 miles 23545$G35 63417.0 miles 48259$


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