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 55606.0 miles 33890$Explorer 32000.0 miles 25338$Maxima 23501.0 miles 49006$Camry 63473.0 miles 15191$Yukon 18984.0 miles 25123$G35 35134.0 miles 29576$
Corvette 8519.0 miles 49419$Explorer 76504.0 miles 16842$Maxima 36497.0 miles 26211$Camry 62240.0 miles 53394$Yukon 8588.0 miles 44027$G35 31115.0 miles 19660$
Corvette 49558.0 miles 18080$Explorer 37525.0 miles 27988$Maxima 12324.0 miles 31632$Camry 63984.0 miles 40570$Yukon 13585.0 miles 22045$G35 10189.0 miles 31620$
Corvette 6233.0 miles 51364$Explorer 61818.0 miles 34825$Maxima 73881.0 miles 42753$Camry 47729.0 miles 27306$Yukon 55652.0 miles 32482$G35 49161.0 miles 35803$
Corvette 56811.0 miles 50263$Explorer 14262.0 miles 31235$Maxima 12236.0 miles 37743$Camry 5248.0 miles 19018$Yukon 30669.0 miles 36601$G35 58970.0 miles 23051$
Corvette 9149.0 miles 47567$Explorer 35674.0 miles 17966$Maxima 50515.0 miles 29152$Camry 39161.0 miles 54412$Yukon 60314.0 miles 40789$G35 65089.0 miles 44172$
Corvette 30125.0 miles 33160$Explorer 55998.0 miles 45607$Maxima 9030.0 miles 51374$Camry 60584.0 miles 36339$Yukon 54067.0 miles 32004$G35 19634.0 miles 52289$
Corvette 34192.0 miles 46551$Explorer 42831.0 miles 35240$Maxima 41704.0 miles 47816$Camry 55470.0 miles 53140$Yukon 33957.0 miles 17771$G35 54948.0 miles 36160$
Corvette 30368.0 miles 17419$Explorer 29770.0 miles 18273$Maxima 52007.0 miles 38270$Camry 73298.0 miles 22038$Yukon 41013.0 miles 25536$G35 51805.0 miles 35351$

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