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 23268.0 miles 32587$Explorer 58358.0 miles 39117$Maxima 41720.0 miles 31418$Camry 27332.0 miles 51527$Yukon 70210.0 miles 32232$G35 51335.0 miles 44223$
Corvette 36907.0 miles 27574$Explorer 64714.0 miles 42109$Maxima 48915.0 miles 27000$Camry 38617.0 miles 30806$Yukon 22213.0 miles 40661$G35 66739.0 miles 49174$
Corvette 39860.0 miles 28655$Explorer 11447.0 miles 31089$Maxima 8954.0 miles 47974$Camry 52557.0 miles 43008$Yukon 11264.0 miles 49479$G35 62334.0 miles 25024$
Corvette 53116.0 miles 33999$Explorer 31750.0 miles 27104$Maxima 70798.0 miles 19023$Camry 35656.0 miles 19729$Yukon 49837.0 miles 43887$G35 17124.0 miles 54078$
Corvette 51393.0 miles 47355$Explorer 75700.0 miles 31240$Maxima 24728.0 miles 39810$Camry 51000.0 miles 27128$Yukon 13356.0 miles 32812$G35 36981.0 miles 47250$
Corvette 50526.0 miles 42332$Explorer 72851.0 miles 34749$Maxima 11636.0 miles 49008$Camry 52407.0 miles 25599$Yukon 36138.0 miles 43757$G35 70908.0 miles 35757$
Corvette 23483.0 miles 49430$Explorer 65587.0 miles 48023$Maxima 39100.0 miles 47912$Camry 49769.0 miles 19133$Yukon 60320.0 miles 53514$G35 78926.0 miles 53260$
Corvette 5475.0 miles 45925$Explorer 23538.0 miles 25200$Maxima 8953.0 miles 44575$Camry 6452.0 miles 18613$Yukon 38526.0 miles 52107$G35 32866.0 miles 15025$
Corvette 49427.0 miles 30010$Explorer 30841.0 miles 40967$Maxima 59220.0 miles 53609$Camry 47669.0 miles 54427$Yukon 70108.0 miles 20150$G35 7333.0 miles 42486$


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