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 60796.0 miles 33340$Explorer 37497.0 miles 31328$Maxima 7972.0 miles 30879$Camry 62694.0 miles 20940$Yukon 64089.0 miles 16868$G35 12833.0 miles 29192$
Corvette 15345.0 miles 49030$Explorer 56278.0 miles 38643$Maxima 63922.0 miles 21233$Camry 29663.0 miles 23850$Yukon 63400.0 miles 52305$G35 65333.0 miles 25384$
Corvette 23720.0 miles 29248$Explorer 59966.0 miles 32885$Maxima 27488.0 miles 45001$Camry 21718.0 miles 38506$Yukon 47448.0 miles 52586$G35 62147.0 miles 18518$
Corvette 73387.0 miles 18327$Explorer 20942.0 miles 54425$Maxima 28203.0 miles 50317$Camry 71688.0 miles 51747$Yukon 27379.0 miles 34709$G35 44009.0 miles 17962$
Corvette 18370.0 miles 36450$Explorer 42592.0 miles 37461$Maxima 49543.0 miles 54633$Camry 44164.0 miles 54586$Yukon 71652.0 miles 31150$G35 13386.0 miles 25340$
Corvette 46953.0 miles 37665$Explorer 54276.0 miles 47127$Maxima 35723.0 miles 24282$Camry 75273.0 miles 44994$Yukon 26502.0 miles 48263$G35 42801.0 miles 32804$
Corvette 45546.0 miles 34699$Explorer 73842.0 miles 30731$Maxima 24790.0 miles 32786$Camry 37968.0 miles 28900$Yukon 52617.0 miles 50072$G35 41900.0 miles 21864$
Corvette 55380.0 miles 22691$Explorer 17139.0 miles 30951$Maxima 79166.0 miles 35674$Camry 22446.0 miles 53433$Yukon 17451.0 miles 29992$G35 15157.0 miles 25942$
Corvette 75450.0 miles 31857$Explorer 37993.0 miles 19801$Maxima 51142.0 miles 52349$Camry 7371.0 miles 26983$Yukon 8760.0 miles 31901$G35 55610.0 miles 32544$


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