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 38790.0 miles 15615$Explorer 34050.0 miles 16507$Maxima 55703.0 miles 31071$Camry 59080.0 miles 26015$Yukon 31645.0 miles 47858$G35 20216.0 miles 47458$
Corvette 32386.0 miles 39003$Explorer 30590.0 miles 20678$Maxima 22457.0 miles 22520$Camry 79995.0 miles 23338$Yukon 6638.0 miles 25018$G35 50172.0 miles 29507$
Corvette 34882.0 miles 41450$Explorer 44479.0 miles 29651$Maxima 10534.0 miles 24943$Camry 72734.0 miles 22829$Yukon 17129.0 miles 20508$G35 14614.0 miles 16605$
Corvette 75304.0 miles 16848$Explorer 54831.0 miles 16426$Maxima 60763.0 miles 54908$Camry 47291.0 miles 23012$Yukon 24446.0 miles 30463$G35 36861.0 miles 21116$
Corvette 16552.0 miles 28611$Explorer 6693.0 miles 34736$Maxima 48029.0 miles 36377$Camry 34803.0 miles 54349$Yukon 47426.0 miles 20357$G35 29193.0 miles 25750$
Corvette 35387.0 miles 18230$Explorer 24820.0 miles 15351$Maxima 13738.0 miles 39373$Camry 48964.0 miles 30682$Yukon 79919.0 miles 46685$G35 47207.0 miles 23513$
Corvette 45390.0 miles 35451$Explorer 38564.0 miles 36404$Maxima 78818.0 miles 30383$Camry 36009.0 miles 22751$Yukon 49481.0 miles 29247$G35 65010.0 miles 49757$
Corvette 9945.0 miles 44839$Explorer 29132.0 miles 54607$Maxima 15013.0 miles 46338$Camry 74380.0 miles 48088$Yukon 33710.0 miles 16169$G35 35430.0 miles 16015$
Corvette 36584.0 miles 33380$Explorer 18514.0 miles 21548$Maxima 63705.0 miles 27526$Camry 9153.0 miles 37978$Yukon 55998.0 miles 28228$G35 75193.0 miles 19756$


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