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 9957.0 miles 54386$Explorer 55222.0 miles 50291$Maxima 40287.0 miles 30621$Camry 13010.0 miles 43605$Yukon 69459.0 miles 39449$G35 79702.0 miles 29709$
Corvette 33537.0 miles 35206$Explorer 46709.0 miles 30321$Maxima 50520.0 miles 17252$Camry 45161.0 miles 29772$Yukon 29560.0 miles 51168$G35 40899.0 miles 32831$
Corvette 38281.0 miles 53974$Explorer 77689.0 miles 22637$Maxima 48283.0 miles 53047$Camry 22053.0 miles 51678$Yukon 16568.0 miles 16608$G35 77234.0 miles 32656$
Corvette 21763.0 miles 42140$Explorer 56029.0 miles 32937$Maxima 42129.0 miles 34485$Camry 66967.0 miles 36634$Yukon 18641.0 miles 24739$G35 17073.0 miles 54069$
Corvette 48829.0 miles 43002$Explorer 77143.0 miles 16750$Maxima 13900.0 miles 38866$Camry 32709.0 miles 16598$Yukon 25523.0 miles 23973$G35 20097.0 miles 47378$
Corvette 59669.0 miles 53973$Explorer 30117.0 miles 39065$Maxima 73077.0 miles 35526$Camry 50836.0 miles 27536$Yukon 30424.0 miles 15791$G35 5616.0 miles 32321$
Corvette 63882.0 miles 47512$Explorer 23324.0 miles 17528$Maxima 68243.0 miles 18066$Camry 41118.0 miles 40695$Yukon 13801.0 miles 38345$G35 13666.0 miles 18276$
Corvette 74223.0 miles 33486$Explorer 67010.0 miles 20143$Maxima 26134.0 miles 16731$Camry 11437.0 miles 50645$Yukon 65114.0 miles 44161$G35 7834.0 miles 34316$
Corvette 5843.0 miles 27156$Explorer 49846.0 miles 23702$Maxima 34388.0 miles 38483$Camry 76893.0 miles 19685$Yukon 66652.0 miles 27060$G35 17152.0 miles 45057$

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