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 49721.0 miles 26299$Explorer 8894.0 miles 17381$Maxima 27278.0 miles 48807$Camry 19910.0 miles 23285$Yukon 13054.0 miles 44438$G35 30329.0 miles 46851$
Corvette 37179.0 miles 22685$Explorer 9150.0 miles 19505$Maxima 11154.0 miles 41973$Camry 60010.0 miles 42287$Yukon 51138.0 miles 32501$G35 39647.0 miles 46324$
Corvette 67729.0 miles 29094$Explorer 50180.0 miles 42808$Maxima 51499.0 miles 38387$Camry 7391.0 miles 38463$Yukon 63983.0 miles 21543$G35 12604.0 miles 48188$
Corvette 18910.0 miles 41295$Explorer 50126.0 miles 38799$Maxima 51351.0 miles 23452$Camry 67662.0 miles 37225$Yukon 68505.0 miles 28726$G35 52904.0 miles 47503$
Corvette 61267.0 miles 48061$Explorer 64092.0 miles 40871$Maxima 34282.0 miles 49316$Camry 69551.0 miles 43373$Yukon 51891.0 miles 48756$G35 78982.0 miles 18275$
Corvette 24927.0 miles 30066$Explorer 39194.0 miles 45700$Maxima 73461.0 miles 39220$Camry 28203.0 miles 49060$Yukon 26637.0 miles 26840$G35 42334.0 miles 24603$
Corvette 11235.0 miles 37841$Explorer 73945.0 miles 52578$Maxima 73489.0 miles 23765$Camry 61731.0 miles 30146$Yukon 17052.0 miles 25191$G35 10031.0 miles 40168$
Corvette 7782.0 miles 35337$Explorer 15208.0 miles 40186$Maxima 7332.0 miles 37370$Camry 62951.0 miles 52428$Yukon 79498.0 miles 26721$G35 66617.0 miles 37864$
Corvette 36941.0 miles 30703$Explorer 51823.0 miles 18211$Maxima 53166.0 miles 32169$Camry 31975.0 miles 47578$Yukon 66658.0 miles 28938$G35 24838.0 miles 51973$


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