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 35569.0 miles 37380$Explorer 16138.0 miles 49501$Maxima 45812.0 miles 46624$Camry 42910.0 miles 30878$Yukon 67842.0 miles 31094$G35 77590.0 miles 25888$
Corvette 25401.0 miles 49676$Explorer 46024.0 miles 51696$Maxima 27302.0 miles 26254$Camry 40623.0 miles 50237$Yukon 20862.0 miles 25794$G35 19518.0 miles 32661$
Corvette 36318.0 miles 15109$Explorer 62770.0 miles 25819$Maxima 71423.0 miles 44784$Camry 25374.0 miles 43304$Yukon 53252.0 miles 42398$G35 56328.0 miles 48107$
Corvette 6521.0 miles 52964$Explorer 11017.0 miles 33398$Maxima 56164.0 miles 51479$Camry 65477.0 miles 40376$Yukon 21427.0 miles 31930$G35 66027.0 miles 20620$
Corvette 45054.0 miles 17488$Explorer 79846.0 miles 23618$Maxima 14429.0 miles 31479$Camry 20320.0 miles 16367$Yukon 63635.0 miles 44811$G35 47170.0 miles 26262$
Corvette 23180.0 miles 35999$Explorer 68536.0 miles 53446$Maxima 72124.0 miles 26426$Camry 5292.0 miles 47318$Yukon 5909.0 miles 21430$G35 40614.0 miles 23896$
Corvette 33538.0 miles 20109$Explorer 55104.0 miles 22659$Maxima 6662.0 miles 53108$Camry 16871.0 miles 26041$Yukon 63720.0 miles 23683$G35 7129.0 miles 16056$
Corvette 58850.0 miles 27481$Explorer 40821.0 miles 37572$Maxima 43753.0 miles 51365$Camry 42135.0 miles 41151$Yukon 64326.0 miles 53832$G35 58868.0 miles 20429$
Corvette 67620.0 miles 44872$Explorer 61690.0 miles 33201$Maxima 75267.0 miles 18588$Camry 13948.0 miles 36080$Yukon 54371.0 miles 41899$G35 19524.0 miles 31944$


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