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 65876.0 miles 27290$Explorer 28366.0 miles 35861$Maxima 40510.0 miles 33518$Camry 44058.0 miles 51244$Yukon 39776.0 miles 35438$G35 24950.0 miles 36795$
Corvette 48680.0 miles 49124$Explorer 66327.0 miles 26182$Maxima 68848.0 miles 34143$Camry 20314.0 miles 45375$Yukon 65336.0 miles 36274$G35 15124.0 miles 22231$
Corvette 75019.0 miles 36136$Explorer 72051.0 miles 33618$Maxima 43057.0 miles 41001$Camry 75654.0 miles 42963$Yukon 37487.0 miles 43082$G35 78051.0 miles 20149$
Corvette 21370.0 miles 41418$Explorer 19829.0 miles 18401$Maxima 48397.0 miles 47312$Camry 19467.0 miles 25354$Yukon 34521.0 miles 52655$G35 38735.0 miles 46116$
Corvette 30062.0 miles 21526$Explorer 43161.0 miles 29341$Maxima 68634.0 miles 35135$Camry 14428.0 miles 16979$Yukon 25220.0 miles 31608$G35 20723.0 miles 39944$
Corvette 71000.0 miles 26456$Explorer 14295.0 miles 49972$Maxima 33254.0 miles 52579$Camry 56119.0 miles 17431$Yukon 42059.0 miles 46795$G35 32106.0 miles 23625$
Corvette 29311.0 miles 38572$Explorer 65480.0 miles 39827$Maxima 69329.0 miles 28135$Camry 24309.0 miles 37390$Yukon 42632.0 miles 54124$G35 73938.0 miles 22739$
Corvette 16129.0 miles 18707$Explorer 19760.0 miles 22753$Maxima 48871.0 miles 19331$Camry 14336.0 miles 19504$Yukon 23825.0 miles 15244$G35 61334.0 miles 27827$
Corvette 18379.0 miles 34803$Explorer 15811.0 miles 18167$Maxima 47793.0 miles 20350$Camry 15778.0 miles 49572$Yukon 58024.0 miles 52950$G35 34953.0 miles 23316$

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