PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
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
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 35293.0 miles 21770$Explorer 29812.0 miles 27957$Maxima 41982.0 miles 18512$Camry 69013.0 miles 51832$Yukon 43137.0 miles 15285$G35 57184.0 miles 22578$
Corvette 12817.0 miles 48444$Explorer 28746.0 miles 22942$Maxima 48847.0 miles 46881$Camry 38948.0 miles 46433$Yukon 60998.0 miles 20923$G35 49441.0 miles 40889$
Corvette 45366.0 miles 44835$Explorer 51873.0 miles 53572$Maxima 8814.0 miles 52818$Camry 55174.0 miles 35674$Yukon 20592.0 miles 48055$G35 76333.0 miles 50876$
Corvette 13736.0 miles 20260$Explorer 10110.0 miles 50121$Maxima 77558.0 miles 15923$Camry 28350.0 miles 40858$Yukon 31646.0 miles 47229$G35 77364.0 miles 34242$
Corvette 68005.0 miles 42472$Explorer 9360.0 miles 51335$Maxima 24103.0 miles 39413$Camry 48150.0 miles 19843$Yukon 64595.0 miles 23753$G35 27698.0 miles 21303$
Corvette 37832.0 miles 34150$Explorer 12408.0 miles 38114$Maxima 50482.0 miles 34261$Camry 52660.0 miles 25581$Yukon 70399.0 miles 52075$G35 77461.0 miles 42205$
Corvette 62243.0 miles 46656$Explorer 29471.0 miles 48960$Maxima 63160.0 miles 24312$Camry 38940.0 miles 33393$Yukon 41296.0 miles 41250$G35 67316.0 miles 54462$
Corvette 63463.0 miles 23743$Explorer 44976.0 miles 51959$Maxima 62908.0 miles 43012$Camry 43190.0 miles 54743$Yukon 24453.0 miles 48259$G35 8235.0 miles 43713$
Corvette 74398.0 miles 23937$Explorer 69130.0 miles 17681$Maxima 25259.0 miles 17713$Camry 56872.0 miles 20160$Yukon 44886.0 miles 47417$G35 54840.0 miles 15246$


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