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 62180.0 miles 51016$Explorer 33481.0 miles 15395$Maxima 27448.0 miles 32223$Camry 45633.0 miles 36441$Yukon 67632.0 miles 29260$G35 37069.0 miles 46755$
Corvette 35454.0 miles 33981$Explorer 15571.0 miles 18793$Maxima 30976.0 miles 27700$Camry 49612.0 miles 18244$Yukon 42082.0 miles 24570$G35 27078.0 miles 16662$
Corvette 22356.0 miles 40189$Explorer 51253.0 miles 44337$Maxima 24874.0 miles 41118$Camry 47036.0 miles 45730$Yukon 74492.0 miles 35948$G35 10265.0 miles 48267$
Corvette 63813.0 miles 20882$Explorer 62291.0 miles 33945$Maxima 18040.0 miles 47764$Camry 77471.0 miles 19540$Yukon 16213.0 miles 49661$G35 9424.0 miles 47247$
Corvette 37223.0 miles 15434$Explorer 48949.0 miles 51607$Maxima 61177.0 miles 25815$Camry 61977.0 miles 43810$Yukon 34828.0 miles 41713$G35 75927.0 miles 49028$
Corvette 31211.0 miles 30823$Explorer 40364.0 miles 20359$Maxima 8978.0 miles 32240$Camry 54906.0 miles 28738$Yukon 34935.0 miles 41044$G35 44850.0 miles 51118$
Corvette 15323.0 miles 18270$Explorer 9123.0 miles 21063$Maxima 40271.0 miles 24563$Camry 18554.0 miles 38611$Yukon 58241.0 miles 27029$G35 54204.0 miles 48592$
Corvette 34250.0 miles 49482$Explorer 28461.0 miles 27315$Maxima 60183.0 miles 35179$Camry 12459.0 miles 42781$Yukon 44049.0 miles 26316$G35 67119.0 miles 50175$
Corvette 46420.0 miles 53202$Explorer 46347.0 miles 48771$Maxima 72076.0 miles 34868$Camry 10928.0 miles 46437$Yukon 15056.0 miles 15438$G35 59117.0 miles 21638$


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