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 26881.0 miles 24545$Explorer 49219.0 miles 37749$Maxima 33824.0 miles 39743$Camry 72900.0 miles 32693$Yukon 37184.0 miles 18826$G35 37546.0 miles 25005$
Corvette 47007.0 miles 34665$Explorer 65341.0 miles 45708$Maxima 40866.0 miles 38286$Camry 65110.0 miles 17549$Yukon 32296.0 miles 43396$G35 46954.0 miles 42967$
Corvette 47664.0 miles 44984$Explorer 71220.0 miles 24171$Maxima 72087.0 miles 35463$Camry 38903.0 miles 30833$Yukon 75607.0 miles 28103$G35 55523.0 miles 33502$
Corvette 17954.0 miles 37988$Explorer 44887.0 miles 42593$Maxima 45900.0 miles 33293$Camry 15929.0 miles 50236$Yukon 50428.0 miles 27739$G35 8387.0 miles 28676$
Corvette 70334.0 miles 42408$Explorer 59440.0 miles 22101$Maxima 39887.0 miles 52420$Camry 78179.0 miles 15757$Yukon 79259.0 miles 18044$G35 32958.0 miles 37320$
Corvette 61675.0 miles 41748$Explorer 13760.0 miles 22392$Maxima 20165.0 miles 39985$Camry 41066.0 miles 43524$Yukon 53876.0 miles 27371$G35 18483.0 miles 38964$
Corvette 61317.0 miles 54659$Explorer 28232.0 miles 43355$Maxima 26682.0 miles 16900$Camry 7010.0 miles 19182$Yukon 77781.0 miles 22055$G35 56767.0 miles 47346$
Corvette 37718.0 miles 25980$Explorer 61681.0 miles 48349$Maxima 49524.0 miles 22735$Camry 57968.0 miles 30435$Yukon 20418.0 miles 50411$G35 11721.0 miles 43338$
Corvette 45785.0 miles 27922$Explorer 65613.0 miles 33319$Maxima 7848.0 miles 29261$Camry 16831.0 miles 38157$Yukon 55546.0 miles 27570$G35 5825.0 miles 54290$


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