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 43211.0 miles 15086$Explorer 13320.0 miles 24340$Maxima 30619.0 miles 31664$Camry 68537.0 miles 16565$Yukon 34225.0 miles 22937$G35 68815.0 miles 42597$
Corvette 35281.0 miles 47452$Explorer 77821.0 miles 29687$Maxima 6532.0 miles 37375$Camry 76984.0 miles 37225$Yukon 14334.0 miles 25086$G35 25986.0 miles 21239$
Corvette 61283.0 miles 27938$Explorer 29537.0 miles 27915$Maxima 35841.0 miles 27144$Camry 38796.0 miles 44566$Yukon 33376.0 miles 51983$G35 65360.0 miles 28524$
Corvette 51292.0 miles 29866$Explorer 64409.0 miles 20793$Maxima 52288.0 miles 43557$Camry 66604.0 miles 54681$Yukon 17271.0 miles 15427$G35 26893.0 miles 44973$
Corvette 68008.0 miles 17267$Explorer 6667.0 miles 35269$Maxima 62934.0 miles 46880$Camry 69729.0 miles 38451$Yukon 66916.0 miles 52629$G35 5429.0 miles 19163$
Corvette 38340.0 miles 54279$Explorer 32120.0 miles 37153$Maxima 25100.0 miles 15705$Camry 17330.0 miles 48244$Yukon 14871.0 miles 39454$G35 54351.0 miles 21630$
Corvette 31996.0 miles 23125$Explorer 5223.0 miles 41973$Maxima 31903.0 miles 21434$Camry 36127.0 miles 40242$Yukon 63036.0 miles 44974$G35 64502.0 miles 52801$
Corvette 43416.0 miles 38942$Explorer 24102.0 miles 47438$Maxima 6803.0 miles 46005$Camry 5992.0 miles 51778$Yukon 42443.0 miles 38018$G35 26347.0 miles 44716$
Corvette 65511.0 miles 51814$Explorer 77404.0 miles 22972$Maxima 66035.0 miles 49150$Camry 55710.0 miles 17849$Yukon 74553.0 miles 21665$G35 58236.0 miles 37511$


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