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 73116.0 miles 42555$Explorer 22014.0 miles 19247$Maxima 57556.0 miles 54219$Camry 76865.0 miles 48337$Yukon 28465.0 miles 48390$G35 6004.0 miles 53441$
Corvette 29105.0 miles 45245$Explorer 49861.0 miles 30818$Maxima 57433.0 miles 16456$Camry 13121.0 miles 52769$Yukon 46411.0 miles 52164$G35 6112.0 miles 18637$
Corvette 17487.0 miles 38445$Explorer 43064.0 miles 22720$Maxima 41533.0 miles 23450$Camry 25957.0 miles 50625$Yukon 79271.0 miles 54816$G35 48180.0 miles 37142$
Corvette 29082.0 miles 44741$Explorer 41578.0 miles 27818$Maxima 32622.0 miles 26567$Camry 56796.0 miles 18915$Yukon 8545.0 miles 39245$G35 35289.0 miles 18270$
Corvette 24304.0 miles 31788$Explorer 17826.0 miles 18763$Maxima 11975.0 miles 42546$Camry 24834.0 miles 21944$Yukon 73705.0 miles 41440$G35 58572.0 miles 20688$
Corvette 61420.0 miles 35988$Explorer 75745.0 miles 22687$Maxima 48604.0 miles 47719$Camry 53900.0 miles 21774$Yukon 58742.0 miles 17208$G35 43285.0 miles 27954$
Corvette 21931.0 miles 48923$Explorer 45418.0 miles 49763$Maxima 76248.0 miles 50447$Camry 74607.0 miles 46125$Yukon 44927.0 miles 23661$G35 40942.0 miles 42839$
Corvette 21381.0 miles 15300$Explorer 57045.0 miles 17131$Maxima 5262.0 miles 17275$Camry 33518.0 miles 23009$Yukon 73869.0 miles 48374$G35 28149.0 miles 16897$
Corvette 45122.0 miles 52954$Explorer 26412.0 miles 32836$Maxima 62466.0 miles 32217$Camry 6248.0 miles 47445$Yukon 8324.0 miles 40422$G35 69148.0 miles 26992$

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