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 78186.0 miles 31163$Explorer 50879.0 miles 42940$Maxima 16098.0 miles 17855$Camry 8590.0 miles 53181$Yukon 6286.0 miles 48267$G35 13801.0 miles 27033$
Corvette 5248.0 miles 28112$Explorer 66614.0 miles 50509$Maxima 65024.0 miles 30431$Camry 19181.0 miles 46068$Yukon 63352.0 miles 17933$G35 43952.0 miles 41806$
Corvette 14781.0 miles 46120$Explorer 58285.0 miles 24524$Maxima 20444.0 miles 50274$Camry 9533.0 miles 53743$Yukon 19409.0 miles 33830$G35 35218.0 miles 33645$
Corvette 57774.0 miles 15614$Explorer 51989.0 miles 52005$Maxima 15177.0 miles 23760$Camry 50317.0 miles 20943$Yukon 25158.0 miles 30847$G35 31484.0 miles 39000$
Corvette 78315.0 miles 54559$Explorer 68783.0 miles 30272$Maxima 55526.0 miles 46252$Camry 35138.0 miles 52406$Yukon 11781.0 miles 21530$G35 70326.0 miles 16848$
Corvette 54233.0 miles 21106$Explorer 28036.0 miles 44891$Maxima 15483.0 miles 26061$Camry 5812.0 miles 40077$Yukon 59652.0 miles 48580$G35 55745.0 miles 15506$
Corvette 36623.0 miles 51019$Explorer 42010.0 miles 39835$Maxima 55989.0 miles 20293$Camry 40721.0 miles 17633$Yukon 71314.0 miles 32582$G35 44571.0 miles 23276$
Corvette 69492.0 miles 50572$Explorer 34524.0 miles 38607$Maxima 67008.0 miles 38273$Camry 18211.0 miles 51908$Yukon 28028.0 miles 15308$G35 58318.0 miles 35480$
Corvette 57653.0 miles 24982$Explorer 29782.0 miles 25694$Maxima 57224.0 miles 34255$Camry 30085.0 miles 42778$Yukon 63092.0 miles 44702$G35 71204.0 miles 35739$

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