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 61121.0 miles 31980$Explorer 43073.0 miles 21132$Maxima 42463.0 miles 26997$Camry 17305.0 miles 20627$Yukon 67208.0 miles 36737$G35 32607.0 miles 38980$
Corvette 9783.0 miles 31554$Explorer 35339.0 miles 46592$Maxima 12319.0 miles 35507$Camry 12423.0 miles 34110$Yukon 41840.0 miles 51957$G35 26205.0 miles 22157$
Corvette 56710.0 miles 44582$Explorer 71019.0 miles 32776$Maxima 53011.0 miles 31877$Camry 76228.0 miles 38372$Yukon 20773.0 miles 25383$G35 64847.0 miles 30162$
Corvette 44335.0 miles 34682$Explorer 63562.0 miles 34525$Maxima 59222.0 miles 41032$Camry 69497.0 miles 24549$Yukon 38281.0 miles 23831$G35 79458.0 miles 43540$
Corvette 26040.0 miles 30203$Explorer 67179.0 miles 28749$Maxima 34558.0 miles 30325$Camry 11048.0 miles 27850$Yukon 22872.0 miles 30731$G35 39121.0 miles 50985$
Corvette 52617.0 miles 44110$Explorer 58672.0 miles 21397$Maxima 45593.0 miles 31114$Camry 76796.0 miles 34877$Yukon 17531.0 miles 20073$G35 15672.0 miles 43921$
Corvette 48932.0 miles 47460$Explorer 28528.0 miles 26284$Maxima 75099.0 miles 37130$Camry 47808.0 miles 25832$Yukon 52985.0 miles 47872$G35 13540.0 miles 34534$
Corvette 17915.0 miles 41899$Explorer 48607.0 miles 32332$Maxima 10287.0 miles 16067$Camry 25695.0 miles 36798$Yukon 9954.0 miles 30523$G35 57669.0 miles 24466$
Corvette 59364.0 miles 45562$Explorer 55608.0 miles 18714$Maxima 63057.0 miles 41200$Camry 32590.0 miles 52232$Yukon 76934.0 miles 26199$G35 51809.0 miles 25649$


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