PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
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
Corvette 43166.0 miles 23813$Explorer 44030.0 miles 44878$Maxima 67648.0 miles 21605$Camry 69037.0 miles 46711$Yukon 18384.0 miles 47369$G35 50305.0 miles 23318$
Corvette 68933.0 miles 40759$Explorer 25135.0 miles 25186$Maxima 25604.0 miles 23313$Camry 72816.0 miles 19346$Yukon 16013.0 miles 33258$G35 61489.0 miles 24752$
Corvette 24724.0 miles 52685$Explorer 69509.0 miles 45440$Maxima 69065.0 miles 50115$Camry 29828.0 miles 50833$Yukon 57824.0 miles 53897$G35 33068.0 miles 45033$
Corvette 55806.0 miles 43120$Explorer 69302.0 miles 48666$Maxima 41556.0 miles 53666$Camry 43353.0 miles 20560$Yukon 13448.0 miles 41735$G35 67629.0 miles 33125$
Corvette 37349.0 miles 15836$Explorer 41555.0 miles 45390$Maxima 50810.0 miles 33655$Camry 65552.0 miles 44716$Yukon 12313.0 miles 54023$G35 42953.0 miles 39937$
Corvette 52531.0 miles 45876$Explorer 9992.0 miles 29966$Maxima 23777.0 miles 22045$Camry 57485.0 miles 46305$Yukon 21857.0 miles 50812$G35 20931.0 miles 25836$
Corvette 18406.0 miles 26623$Explorer 75531.0 miles 32320$Maxima 45881.0 miles 30057$Camry 73526.0 miles 53790$Yukon 53622.0 miles 43303$G35 79102.0 miles 20202$
Corvette 51721.0 miles 43396$Explorer 73409.0 miles 24518$Maxima 38444.0 miles 19277$Camry 38705.0 miles 22366$Yukon 51854.0 miles 45191$G35 55707.0 miles 28347$
Corvette 21667.0 miles 32206$Explorer 17562.0 miles 18480$Maxima 79646.0 miles 38305$Camry 61307.0 miles 32390$Yukon 12487.0 miles 29377$G35 65851.0 miles 46800$

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