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 49510.0 miles 15872$Explorer 11731.0 miles 26306$Maxima 19309.0 miles 37864$Camry 24089.0 miles 39489$Yukon 39124.0 miles 36610$G35 20604.0 miles 17423$
Corvette 30149.0 miles 32225$Explorer 35751.0 miles 21148$Maxima 33797.0 miles 40520$Camry 10370.0 miles 41208$Yukon 52928.0 miles 53276$G35 56327.0 miles 24448$
Corvette 71069.0 miles 52331$Explorer 52899.0 miles 40758$Maxima 72295.0 miles 22248$Camry 45274.0 miles 37672$Yukon 61903.0 miles 28975$G35 64864.0 miles 22915$
Corvette 58162.0 miles 22236$Explorer 35390.0 miles 27341$Maxima 66670.0 miles 43049$Camry 34619.0 miles 25540$Yukon 26217.0 miles 36972$G35 22063.0 miles 51153$
Corvette 69960.0 miles 34666$Explorer 45717.0 miles 39194$Maxima 45186.0 miles 17286$Camry 31622.0 miles 27354$Yukon 76049.0 miles 23920$G35 53727.0 miles 38937$
Corvette 8049.0 miles 23160$Explorer 14675.0 miles 50687$Maxima 59024.0 miles 20792$Camry 43253.0 miles 28514$Yukon 41468.0 miles 30048$G35 24596.0 miles 18104$
Corvette 69564.0 miles 35546$Explorer 78690.0 miles 28632$Maxima 7771.0 miles 47776$Camry 34477.0 miles 46842$Yukon 37242.0 miles 23953$G35 46788.0 miles 35439$
Corvette 31945.0 miles 37496$Explorer 7403.0 miles 32192$Maxima 70365.0 miles 46925$Camry 57869.0 miles 46613$Yukon 74393.0 miles 26154$G35 15668.0 miles 54815$
Corvette 70279.0 miles 34114$Explorer 68000.0 miles 27590$Maxima 7036.0 miles 16333$Camry 72474.0 miles 48338$Yukon 49505.0 miles 20694$G35 9808.0 miles 45859$


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