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 7869.0 miles 46001$Explorer 30997.0 miles 54543$Maxima 57925.0 miles 25133$Camry 70463.0 miles 25741$Yukon 19410.0 miles 26571$G35 21893.0 miles 47610$
Corvette 51361.0 miles 16137$Explorer 73344.0 miles 28172$Maxima 62589.0 miles 17395$Camry 36844.0 miles 25920$Yukon 78427.0 miles 21463$G35 40803.0 miles 50676$
Corvette 20513.0 miles 46162$Explorer 65058.0 miles 33219$Maxima 30012.0 miles 40224$Camry 15426.0 miles 29522$Yukon 32660.0 miles 26696$G35 17161.0 miles 54568$
Corvette 62514.0 miles 20428$Explorer 60925.0 miles 31334$Maxima 57810.0 miles 25743$Camry 35299.0 miles 42730$Yukon 69408.0 miles 27438$G35 63039.0 miles 23180$
Corvette 56140.0 miles 40644$Explorer 76677.0 miles 44057$Maxima 64764.0 miles 16396$Camry 46367.0 miles 45707$Yukon 52126.0 miles 42358$G35 42837.0 miles 26779$
Corvette 56095.0 miles 51008$Explorer 21883.0 miles 50054$Maxima 29328.0 miles 42389$Camry 13965.0 miles 25772$Yukon 55964.0 miles 34771$G35 77673.0 miles 33844$
Corvette 35265.0 miles 40966$Explorer 17231.0 miles 53993$Maxima 12528.0 miles 48314$Camry 68901.0 miles 34796$Yukon 27041.0 miles 17299$G35 8044.0 miles 21766$
Corvette 29642.0 miles 36572$Explorer 6205.0 miles 47395$Maxima 14295.0 miles 16393$Camry 40074.0 miles 29807$Yukon 7657.0 miles 29922$G35 6840.0 miles 16006$
Corvette 17569.0 miles 52037$Explorer 32033.0 miles 27848$Maxima 16624.0 miles 30809$Camry 41180.0 miles 18589$Yukon 71029.0 miles 32112$G35 21884.0 miles 32778$

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