PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
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
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 76866.0 miles 53910$Explorer 12705.0 miles 37166$Maxima 37937.0 miles 19245$Camry 25114.0 miles 25813$Yukon 66579.0 miles 19180$G35 22131.0 miles 30953$
Corvette 39458.0 miles 43632$Explorer 27978.0 miles 36015$Maxima 18105.0 miles 19827$Camry 16474.0 miles 52140$Yukon 60874.0 miles 18035$G35 60612.0 miles 26329$
Corvette 49853.0 miles 16567$Explorer 33540.0 miles 36372$Maxima 46582.0 miles 42957$Camry 9157.0 miles 34440$Yukon 41536.0 miles 26971$G35 38499.0 miles 42062$
Corvette 8692.0 miles 40994$Explorer 60260.0 miles 22153$Maxima 58532.0 miles 29430$Camry 42150.0 miles 32356$Yukon 76853.0 miles 17482$G35 33069.0 miles 46399$
Corvette 57045.0 miles 52633$Explorer 40105.0 miles 53853$Maxima 61683.0 miles 19115$Camry 42383.0 miles 27948$Yukon 27206.0 miles 30905$G35 65053.0 miles 50272$
Corvette 56494.0 miles 24108$Explorer 9778.0 miles 22746$Maxima 66257.0 miles 26623$Camry 20900.0 miles 51942$Yukon 22832.0 miles 28187$G35 53177.0 miles 53407$
Corvette 15033.0 miles 38976$Explorer 7167.0 miles 29037$Maxima 68849.0 miles 17817$Camry 53051.0 miles 37235$Yukon 11411.0 miles 23269$G35 23638.0 miles 52883$
Corvette 61532.0 miles 39835$Explorer 43284.0 miles 43770$Maxima 40531.0 miles 38793$Camry 44480.0 miles 29581$Yukon 32606.0 miles 15171$G35 16294.0 miles 19540$
Corvette 69210.0 miles 33839$Explorer 69906.0 miles 16093$Maxima 29010.0 miles 15078$Camry 22212.0 miles 35115$Yukon 25575.0 miles 20610$G35 27288.0 miles 51566$


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