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 46042.0 miles 42779$Explorer 12104.0 miles 36377$Maxima 43636.0 miles 45404$Camry 24124.0 miles 31916$Yukon 76199.0 miles 30118$G35 50989.0 miles 18282$
Corvette 59621.0 miles 54547$Explorer 37181.0 miles 50908$Maxima 54647.0 miles 51018$Camry 49750.0 miles 17472$Yukon 15174.0 miles 39945$G35 55510.0 miles 27911$
Corvette 60893.0 miles 34886$Explorer 60892.0 miles 53104$Maxima 6428.0 miles 27884$Camry 41688.0 miles 49359$Yukon 75766.0 miles 42132$G35 57659.0 miles 22411$
Corvette 48382.0 miles 25163$Explorer 62428.0 miles 37237$Maxima 29585.0 miles 22004$Camry 45239.0 miles 49174$Yukon 60009.0 miles 54135$G35 48222.0 miles 28730$
Corvette 67769.0 miles 51036$Explorer 62271.0 miles 34345$Maxima 56732.0 miles 26732$Camry 26443.0 miles 27966$Yukon 61149.0 miles 47422$G35 11840.0 miles 44978$
Corvette 64788.0 miles 47544$Explorer 18854.0 miles 25290$Maxima 21461.0 miles 53865$Camry 69388.0 miles 37973$Yukon 39877.0 miles 24596$G35 63647.0 miles 30318$
Corvette 7438.0 miles 43142$Explorer 78971.0 miles 54275$Maxima 75702.0 miles 47045$Camry 46406.0 miles 51482$Yukon 61251.0 miles 24573$G35 78621.0 miles 20050$
Corvette 12499.0 miles 46631$Explorer 71928.0 miles 15258$Maxima 39713.0 miles 41284$Camry 13596.0 miles 43682$Yukon 59603.0 miles 37049$G35 53770.0 miles 36023$
Corvette 12532.0 miles 36028$Explorer 6352.0 miles 27476$Maxima 63226.0 miles 47239$Camry 11626.0 miles 26256$Yukon 21887.0 miles 40404$G35 72114.0 miles 31581$

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