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 33788.0 miles 48790$Explorer 74609.0 miles 27882$Maxima 32440.0 miles 37772$Camry 73691.0 miles 32491$Yukon 16272.0 miles 53315$G35 60421.0 miles 15807$
Corvette 72826.0 miles 41175$Explorer 52813.0 miles 23056$Maxima 43480.0 miles 29339$Camry 40274.0 miles 29165$Yukon 68626.0 miles 45863$G35 43568.0 miles 50165$
Corvette 12758.0 miles 41667$Explorer 49472.0 miles 43916$Maxima 44380.0 miles 34758$Camry 18450.0 miles 53519$Yukon 76672.0 miles 44087$G35 63063.0 miles 21746$
Corvette 61503.0 miles 48448$Explorer 21644.0 miles 29658$Maxima 14840.0 miles 44437$Camry 61906.0 miles 32849$Yukon 16209.0 miles 33736$G35 26647.0 miles 22299$
Corvette 33504.0 miles 50746$Explorer 64430.0 miles 31315$Maxima 44286.0 miles 20162$Camry 57238.0 miles 22734$Yukon 71534.0 miles 53618$G35 64866.0 miles 18099$
Corvette 60585.0 miles 54107$Explorer 35973.0 miles 19743$Maxima 55038.0 miles 17828$Camry 24735.0 miles 29897$Yukon 59511.0 miles 34104$G35 74615.0 miles 37103$
Corvette 22914.0 miles 46391$Explorer 62836.0 miles 26258$Maxima 73573.0 miles 19017$Camry 20991.0 miles 18938$Yukon 12501.0 miles 15608$G35 48914.0 miles 44424$
Corvette 29337.0 miles 28539$Explorer 60580.0 miles 23817$Maxima 30255.0 miles 49962$Camry 25488.0 miles 15320$Yukon 59924.0 miles 41165$G35 78951.0 miles 16643$
Corvette 49852.0 miles 24494$Explorer 6699.0 miles 40442$Maxima 11511.0 miles 30424$Camry 47367.0 miles 54928$Yukon 59095.0 miles 22319$G35 44392.0 miles 54269$


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