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 42127.0 miles 52791$Explorer 55401.0 miles 40725$Maxima 70577.0 miles 22566$Camry 68746.0 miles 45070$Yukon 36949.0 miles 30424$G35 67095.0 miles 42605$
Corvette 62114.0 miles 20472$Explorer 7638.0 miles 52725$Maxima 77530.0 miles 40187$Camry 33728.0 miles 47289$Yukon 12091.0 miles 18517$G35 52831.0 miles 26064$
Corvette 76911.0 miles 21237$Explorer 40801.0 miles 54246$Maxima 42407.0 miles 19849$Camry 59753.0 miles 37992$Yukon 75633.0 miles 24425$G35 71040.0 miles 41012$
Corvette 43072.0 miles 37615$Explorer 32472.0 miles 37666$Maxima 17337.0 miles 39217$Camry 59080.0 miles 26821$Yukon 50070.0 miles 37821$G35 74915.0 miles 22458$
Corvette 26487.0 miles 30320$Explorer 69913.0 miles 32205$Maxima 71890.0 miles 51475$Camry 31474.0 miles 35940$Yukon 77233.0 miles 19507$G35 71819.0 miles 42277$
Corvette 62276.0 miles 47599$Explorer 28305.0 miles 52129$Maxima 47536.0 miles 24049$Camry 71256.0 miles 16448$Yukon 21924.0 miles 38835$G35 39179.0 miles 53340$
Corvette 50607.0 miles 19007$Explorer 59273.0 miles 22140$Maxima 74734.0 miles 50177$Camry 63681.0 miles 23103$Yukon 22597.0 miles 48333$G35 19127.0 miles 50336$
Corvette 22542.0 miles 18373$Explorer 57075.0 miles 19740$Maxima 64278.0 miles 46736$Camry 6055.0 miles 22100$Yukon 24377.0 miles 44063$G35 79343.0 miles 39903$
Corvette 74845.0 miles 17327$Explorer 73507.0 miles 15136$Maxima 21622.0 miles 17319$Camry 47139.0 miles 44907$Yukon 8932.0 miles 30446$G35 23027.0 miles 51441$


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