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 30741.0 miles 24159$Explorer 79010.0 miles 23099$Maxima 64253.0 miles 22568$Camry 58719.0 miles 15102$Yukon 24878.0 miles 17120$G35 11928.0 miles 28165$
Corvette 68017.0 miles 50730$Explorer 15996.0 miles 30554$Maxima 13955.0 miles 18195$Camry 34624.0 miles 22032$Yukon 22139.0 miles 19175$G35 38014.0 miles 54708$
Corvette 25605.0 miles 53730$Explorer 23730.0 miles 20393$Maxima 43224.0 miles 50981$Camry 35251.0 miles 36066$Yukon 50017.0 miles 32191$G35 13633.0 miles 16774$
Corvette 38927.0 miles 43714$Explorer 16340.0 miles 33905$Maxima 48745.0 miles 20863$Camry 14841.0 miles 19483$Yukon 60143.0 miles 22638$G35 77708.0 miles 24870$
Corvette 49471.0 miles 27650$Explorer 19177.0 miles 16244$Maxima 58380.0 miles 44831$Camry 31694.0 miles 26137$Yukon 37251.0 miles 34130$G35 47148.0 miles 15295$
Corvette 15639.0 miles 38407$Explorer 10578.0 miles 31025$Maxima 19846.0 miles 53268$Camry 20067.0 miles 48662$Yukon 27797.0 miles 19131$G35 42566.0 miles 46409$
Corvette 48754.0 miles 52121$Explorer 32520.0 miles 38221$Maxima 56969.0 miles 41320$Camry 50402.0 miles 44081$Yukon 11924.0 miles 23384$G35 65878.0 miles 25303$
Corvette 70377.0 miles 45735$Explorer 61830.0 miles 42345$Maxima 15563.0 miles 32605$Camry 52193.0 miles 46029$Yukon 29351.0 miles 20153$G35 73372.0 miles 42356$
Corvette 66981.0 miles 53243$Explorer 61379.0 miles 43056$Maxima 75194.0 miles 25171$Camry 24738.0 miles 51934$Yukon 31180.0 miles 53068$G35 14945.0 miles 15610$


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