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 48805.0 miles 23367$Explorer 79198.0 miles 43421$Maxima 37915.0 miles 38525$Camry 52406.0 miles 20362$Yukon 8031.0 miles 21769$G35 76543.0 miles 17497$
Corvette 27252.0 miles 37788$Explorer 20694.0 miles 54316$Maxima 62166.0 miles 43887$Camry 34625.0 miles 34684$Yukon 29444.0 miles 36947$G35 19575.0 miles 26494$
Corvette 5196.0 miles 43769$Explorer 50016.0 miles 52329$Maxima 60345.0 miles 18020$Camry 50440.0 miles 42083$Yukon 43733.0 miles 47539$G35 35193.0 miles 19577$
Corvette 61614.0 miles 50982$Explorer 73354.0 miles 49586$Maxima 74862.0 miles 19750$Camry 33278.0 miles 34438$Yukon 22251.0 miles 39783$G35 17513.0 miles 34671$
Corvette 8416.0 miles 25781$Explorer 26723.0 miles 24576$Maxima 20069.0 miles 31806$Camry 5368.0 miles 16006$Yukon 52251.0 miles 32139$G35 74061.0 miles 44974$
Corvette 70817.0 miles 27594$Explorer 54778.0 miles 44881$Maxima 21829.0 miles 23418$Camry 46785.0 miles 23401$Yukon 27996.0 miles 16112$G35 24648.0 miles 20572$
Corvette 24686.0 miles 17643$Explorer 55204.0 miles 54095$Maxima 76669.0 miles 51400$Camry 44794.0 miles 41255$Yukon 64977.0 miles 53935$G35 6354.0 miles 54311$
Corvette 77437.0 miles 39842$Explorer 51878.0 miles 26947$Maxima 35216.0 miles 43747$Camry 42973.0 miles 33623$Yukon 10755.0 miles 18367$G35 37409.0 miles 51205$
Corvette 77136.0 miles 52003$Explorer 72802.0 miles 20367$Maxima 21683.0 miles 28550$Camry 56591.0 miles 24900$Yukon 69249.0 miles 33802$G35 72943.0 miles 51762$


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