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 56443.0 miles 40001$Explorer 7601.0 miles 33816$Maxima 46042.0 miles 41325$Camry 36685.0 miles 41371$Yukon 11113.0 miles 33817$G35 76838.0 miles 24797$
Corvette 61072.0 miles 39683$Explorer 40132.0 miles 50228$Maxima 77697.0 miles 54072$Camry 32239.0 miles 39919$Yukon 61395.0 miles 32411$G35 18677.0 miles 48969$
Corvette 77318.0 miles 34610$Explorer 68484.0 miles 41135$Maxima 78059.0 miles 32802$Camry 70311.0 miles 18966$Yukon 14631.0 miles 28249$G35 77932.0 miles 44016$
Corvette 79526.0 miles 34671$Explorer 58595.0 miles 17604$Maxima 34246.0 miles 19492$Camry 75155.0 miles 43735$Yukon 12267.0 miles 25375$G35 74525.0 miles 32035$
Corvette 31220.0 miles 29345$Explorer 49211.0 miles 26867$Maxima 13016.0 miles 39704$Camry 25928.0 miles 38746$Yukon 63578.0 miles 46659$G35 74586.0 miles 44629$
Corvette 19884.0 miles 48792$Explorer 75812.0 miles 26157$Maxima 40735.0 miles 30803$Camry 37735.0 miles 39992$Yukon 23223.0 miles 51187$G35 13378.0 miles 24693$
Corvette 16143.0 miles 53123$Explorer 30615.0 miles 23425$Maxima 71725.0 miles 22512$Camry 61482.0 miles 18882$Yukon 16098.0 miles 49393$G35 21787.0 miles 44085$
Corvette 48767.0 miles 51928$Explorer 55310.0 miles 21497$Maxima 72991.0 miles 44795$Camry 44444.0 miles 30251$Yukon 38419.0 miles 53819$G35 51218.0 miles 23425$
Corvette 65057.0 miles 39747$Explorer 43317.0 miles 25119$Maxima 33080.0 miles 49497$Camry 45674.0 miles 43142$Yukon 72936.0 miles 40615$G35 21972.0 miles 37514$

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