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 68886.0 miles 54733$Explorer 41443.0 miles 45829$Maxima 9301.0 miles 40829$Camry 48867.0 miles 21623$Yukon 23070.0 miles 28197$G35 29380.0 miles 52687$
Corvette 40195.0 miles 30019$Explorer 10907.0 miles 31551$Maxima 45255.0 miles 35427$Camry 53294.0 miles 25988$Yukon 47625.0 miles 38369$G35 28803.0 miles 37223$
Corvette 15878.0 miles 33444$Explorer 15205.0 miles 23392$Maxima 7644.0 miles 49332$Camry 63130.0 miles 20049$Yukon 42887.0 miles 32603$G35 46587.0 miles 38110$
Corvette 58791.0 miles 21294$Explorer 37632.0 miles 42620$Maxima 20360.0 miles 36654$Camry 47403.0 miles 23727$Yukon 46103.0 miles 32965$G35 67780.0 miles 37713$
Corvette 71472.0 miles 48657$Explorer 50066.0 miles 19125$Maxima 37510.0 miles 51669$Camry 72804.0 miles 41165$Yukon 42248.0 miles 32630$G35 42714.0 miles 47746$
Corvette 29562.0 miles 48792$Explorer 15842.0 miles 17708$Maxima 58166.0 miles 40521$Camry 33356.0 miles 20210$Yukon 26700.0 miles 34295$G35 59373.0 miles 52261$
Corvette 53881.0 miles 51693$Explorer 79741.0 miles 17191$Maxima 62896.0 miles 40840$Camry 67148.0 miles 42885$Yukon 65675.0 miles 49954$G35 77073.0 miles 17213$
Corvette 79384.0 miles 46593$Explorer 21020.0 miles 49601$Maxima 33664.0 miles 26143$Camry 13714.0 miles 39205$Yukon 8575.0 miles 20496$G35 48905.0 miles 53225$
Corvette 33129.0 miles 50590$Explorer 73136.0 miles 47327$Maxima 38726.0 miles 26311$Camry 14093.0 miles 38972$Yukon 70906.0 miles 18346$G35 67737.0 miles 49992$

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