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 41409.0 miles 28526$Explorer 79796.0 miles 45092$Maxima 74679.0 miles 34991$Camry 74824.0 miles 26753$Yukon 40510.0 miles 48648$G35 69949.0 miles 15687$
Corvette 76239.0 miles 42160$Explorer 74244.0 miles 30222$Maxima 68558.0 miles 35801$Camry 39086.0 miles 43265$Yukon 66821.0 miles 19005$G35 49783.0 miles 24205$
Corvette 59568.0 miles 47433$Explorer 7048.0 miles 34670$Maxima 34179.0 miles 25910$Camry 52223.0 miles 28014$Yukon 11322.0 miles 38551$G35 55049.0 miles 20052$
Corvette 72978.0 miles 47022$Explorer 16075.0 miles 25412$Maxima 46780.0 miles 27136$Camry 49625.0 miles 40027$Yukon 41378.0 miles 37379$G35 29455.0 miles 30785$
Corvette 69855.0 miles 25861$Explorer 70191.0 miles 47547$Maxima 55895.0 miles 38150$Camry 27735.0 miles 19685$Yukon 39680.0 miles 48763$G35 23684.0 miles 53713$
Corvette 49943.0 miles 26960$Explorer 79780.0 miles 18089$Maxima 12828.0 miles 53482$Camry 48625.0 miles 45291$Yukon 55257.0 miles 34867$G35 42522.0 miles 32546$
Corvette 19554.0 miles 30022$Explorer 55840.0 miles 34350$Maxima 46791.0 miles 26184$Camry 48216.0 miles 21320$Yukon 20987.0 miles 20349$G35 60324.0 miles 52278$
Corvette 10249.0 miles 30864$Explorer 78151.0 miles 15921$Maxima 77438.0 miles 50343$Camry 8951.0 miles 17046$Yukon 74763.0 miles 25755$G35 68479.0 miles 19189$
Corvette 78107.0 miles 54282$Explorer 72738.0 miles 45250$Maxima 26860.0 miles 50684$Camry 5677.0 miles 30274$Yukon 21602.0 miles 46727$G35 15794.0 miles 51401$

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