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 52879.0 miles 48995$Explorer 41287.0 miles 37727$Maxima 46662.0 miles 43142$Camry 59093.0 miles 38470$Yukon 42833.0 miles 15430$G35 19934.0 miles 43106$
Corvette 68086.0 miles 45744$Explorer 39961.0 miles 31178$Maxima 5279.0 miles 20857$Camry 24064.0 miles 15058$Yukon 62260.0 miles 49768$G35 21468.0 miles 19615$
Corvette 40778.0 miles 49036$Explorer 60018.0 miles 28180$Maxima 31766.0 miles 26774$Camry 77656.0 miles 30012$Yukon 25072.0 miles 37835$G35 30617.0 miles 31000$
Corvette 15603.0 miles 27453$Explorer 27504.0 miles 52062$Maxima 71058.0 miles 39311$Camry 23084.0 miles 29300$Yukon 7491.0 miles 53719$G35 11170.0 miles 31190$
Corvette 18934.0 miles 30262$Explorer 79333.0 miles 25700$Maxima 67186.0 miles 28475$Camry 38232.0 miles 42576$Yukon 22258.0 miles 15959$G35 41020.0 miles 46636$
Corvette 8067.0 miles 39669$Explorer 33052.0 miles 35302$Maxima 69158.0 miles 42790$Camry 55472.0 miles 49263$Yukon 6076.0 miles 47426$G35 59455.0 miles 34184$
Corvette 13358.0 miles 20313$Explorer 64540.0 miles 54148$Maxima 17376.0 miles 36063$Camry 73364.0 miles 27112$Yukon 65748.0 miles 36650$G35 20247.0 miles 49665$
Corvette 12270.0 miles 23670$Explorer 31422.0 miles 25242$Maxima 34987.0 miles 22464$Camry 39035.0 miles 26215$Yukon 65544.0 miles 41780$G35 18643.0 miles 44630$
Corvette 47834.0 miles 49912$Explorer 67777.0 miles 30247$Maxima 64395.0 miles 33019$Camry 43205.0 miles 20315$Yukon 28901.0 miles 31539$G35 7213.0 miles 38138$

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