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 51871.0 miles 19663$Explorer 56849.0 miles 47958$Maxima 32154.0 miles 22720$Camry 43029.0 miles 31881$Yukon 34836.0 miles 15501$G35 34671.0 miles 24192$
Corvette 25395.0 miles 33861$Explorer 7238.0 miles 48392$Maxima 10700.0 miles 39208$Camry 60592.0 miles 33162$Yukon 60747.0 miles 39704$G35 62969.0 miles 34689$
Corvette 47774.0 miles 27312$Explorer 21640.0 miles 41589$Maxima 54560.0 miles 19218$Camry 18370.0 miles 50528$Yukon 15453.0 miles 38621$G35 11536.0 miles 44682$
Corvette 48565.0 miles 30899$Explorer 75779.0 miles 50326$Maxima 72640.0 miles 48198$Camry 29894.0 miles 49664$Yukon 20585.0 miles 42295$G35 46689.0 miles 18077$
Corvette 38035.0 miles 36843$Explorer 45017.0 miles 45974$Maxima 44862.0 miles 29397$Camry 26301.0 miles 28192$Yukon 64641.0 miles 27351$G35 75076.0 miles 50933$
Corvette 28738.0 miles 20951$Explorer 29704.0 miles 37968$Maxima 64730.0 miles 37227$Camry 38228.0 miles 48207$Yukon 33571.0 miles 50115$G35 39060.0 miles 50671$
Corvette 19417.0 miles 49355$Explorer 56599.0 miles 43433$Maxima 45906.0 miles 19101$Camry 10808.0 miles 23597$Yukon 18633.0 miles 54043$G35 13516.0 miles 39173$
Corvette 40305.0 miles 30900$Explorer 48124.0 miles 19330$Maxima 66801.0 miles 45750$Camry 59539.0 miles 38827$Yukon 63871.0 miles 52357$G35 23567.0 miles 22715$
Corvette 32968.0 miles 46035$Explorer 58422.0 miles 53335$Maxima 58141.0 miles 18057$Camry 6074.0 miles 35577$Yukon 17054.0 miles 43336$G35 72177.0 miles 40269$


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