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 43261.0 miles 29151$Explorer 26086.0 miles 24935$Maxima 11790.0 miles 41998$Camry 34220.0 miles 16926$Yukon 73153.0 miles 16463$G35 39854.0 miles 41209$
Corvette 29154.0 miles 27483$Explorer 9393.0 miles 42369$Maxima 76726.0 miles 24517$Camry 15646.0 miles 25937$Yukon 23171.0 miles 21867$G35 79515.0 miles 54480$
Corvette 61030.0 miles 38291$Explorer 24261.0 miles 44960$Maxima 59895.0 miles 24467$Camry 63961.0 miles 47602$Yukon 68622.0 miles 36525$G35 23196.0 miles 46634$
Corvette 31182.0 miles 43232$Explorer 50360.0 miles 52565$Maxima 62664.0 miles 46510$Camry 47135.0 miles 35298$Yukon 10236.0 miles 30728$G35 48207.0 miles 38654$
Corvette 43984.0 miles 16667$Explorer 8169.0 miles 18200$Maxima 37786.0 miles 30476$Camry 61043.0 miles 23794$Yukon 61137.0 miles 18396$G35 76303.0 miles 48239$
Corvette 39538.0 miles 19959$Explorer 76365.0 miles 20238$Maxima 66945.0 miles 34971$Camry 28061.0 miles 24600$Yukon 50697.0 miles 28911$G35 33369.0 miles 25784$
Corvette 19980.0 miles 16363$Explorer 19719.0 miles 34317$Maxima 31769.0 miles 48523$Camry 29453.0 miles 53379$Yukon 66447.0 miles 16594$G35 52121.0 miles 43245$
Corvette 79035.0 miles 16262$Explorer 25154.0 miles 39248$Maxima 35613.0 miles 22348$Camry 45598.0 miles 47586$Yukon 8940.0 miles 38739$G35 42831.0 miles 31980$
Corvette 72695.0 miles 30873$Explorer 57144.0 miles 38304$Maxima 39743.0 miles 51848$Camry 30352.0 miles 29698$Yukon 47792.0 miles 36569$G35 16528.0 miles 15940$


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