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 40755.0 miles 33841$Explorer 53061.0 miles 36485$Maxima 28407.0 miles 47009$Camry 63464.0 miles 27214$Yukon 27692.0 miles 53743$G35 46390.0 miles 25276$
Corvette 9716.0 miles 22884$Explorer 11119.0 miles 47060$Maxima 31706.0 miles 41181$Camry 45166.0 miles 31628$Yukon 45029.0 miles 27985$G35 49457.0 miles 53648$
Corvette 56404.0 miles 39557$Explorer 73543.0 miles 33315$Maxima 9021.0 miles 28072$Camry 78478.0 miles 30556$Yukon 41499.0 miles 39413$G35 61995.0 miles 28943$
Corvette 60450.0 miles 48659$Explorer 59906.0 miles 23796$Maxima 5391.0 miles 35242$Camry 51256.0 miles 48271$Yukon 8264.0 miles 38586$G35 48250.0 miles 21540$
Corvette 28771.0 miles 21356$Explorer 11045.0 miles 52504$Maxima 45290.0 miles 34112$Camry 21645.0 miles 23007$Yukon 33731.0 miles 19533$G35 56852.0 miles 24748$
Corvette 24662.0 miles 16753$Explorer 37429.0 miles 24991$Maxima 62892.0 miles 16176$Camry 16307.0 miles 48391$Yukon 79847.0 miles 16476$G35 65915.0 miles 16848$
Corvette 27490.0 miles 40290$Explorer 12394.0 miles 40312$Maxima 36108.0 miles 51540$Camry 29848.0 miles 36005$Yukon 17568.0 miles 54262$G35 34013.0 miles 33362$
Corvette 75561.0 miles 53617$Explorer 46148.0 miles 52014$Maxima 68512.0 miles 16665$Camry 57236.0 miles 53858$Yukon 28266.0 miles 27856$G35 62051.0 miles 44994$
Corvette 35761.0 miles 27090$Explorer 26904.0 miles 32675$Maxima 53382.0 miles 34070$Camry 5200.0 miles 44427$Yukon 26473.0 miles 47807$G35 51977.0 miles 19233$

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