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 28922.0 miles 39273$Explorer 25096.0 miles 28486$Maxima 12739.0 miles 16292$Camry 60279.0 miles 28822$Yukon 24882.0 miles 45519$G35 16756.0 miles 20999$
Corvette 71224.0 miles 16135$Explorer 76163.0 miles 29872$Maxima 32673.0 miles 51155$Camry 59534.0 miles 44901$Yukon 21880.0 miles 29650$G35 65071.0 miles 51376$
Corvette 72087.0 miles 51722$Explorer 7967.0 miles 45609$Maxima 12464.0 miles 33137$Camry 19014.0 miles 17575$Yukon 54711.0 miles 37600$G35 13649.0 miles 54381$
Corvette 32255.0 miles 37404$Explorer 19131.0 miles 47079$Maxima 38832.0 miles 51782$Camry 35169.0 miles 32742$Yukon 28460.0 miles 48592$G35 75363.0 miles 30713$
Corvette 5791.0 miles 41901$Explorer 15975.0 miles 16191$Maxima 15121.0 miles 37187$Camry 51081.0 miles 43626$Yukon 14592.0 miles 17612$G35 55851.0 miles 21403$
Corvette 76363.0 miles 30672$Explorer 50507.0 miles 45040$Maxima 40920.0 miles 24812$Camry 22185.0 miles 52375$Yukon 60169.0 miles 27301$G35 20573.0 miles 40377$
Corvette 26691.0 miles 36444$Explorer 16723.0 miles 38353$Maxima 15118.0 miles 54672$Camry 71228.0 miles 22525$Yukon 55014.0 miles 15835$G35 39105.0 miles 44398$
Corvette 47160.0 miles 37298$Explorer 25644.0 miles 36115$Maxima 46377.0 miles 37988$Camry 72464.0 miles 15117$Yukon 58147.0 miles 18524$G35 33082.0 miles 41754$
Corvette 62200.0 miles 49662$Explorer 61254.0 miles 32665$Maxima 46888.0 miles 46216$Camry 8342.0 miles 48089$Yukon 56433.0 miles 47187$G35 16340.0 miles 41117$


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