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 35415.0 miles 32918$Explorer 36067.0 miles 26492$Maxima 11581.0 miles 33775$Camry 72125.0 miles 30901$Yukon 15609.0 miles 29238$G35 31175.0 miles 19227$
Corvette 26946.0 miles 20566$Explorer 32118.0 miles 44869$Maxima 69380.0 miles 19344$Camry 61694.0 miles 27643$Yukon 9869.0 miles 50963$G35 42779.0 miles 51705$
Corvette 71754.0 miles 34698$Explorer 77186.0 miles 43036$Maxima 65959.0 miles 27984$Camry 11204.0 miles 21304$Yukon 16178.0 miles 24363$G35 77736.0 miles 37943$
Corvette 70214.0 miles 17968$Explorer 11553.0 miles 36026$Maxima 6438.0 miles 49190$Camry 32578.0 miles 19994$Yukon 39028.0 miles 28929$G35 68359.0 miles 27115$
Corvette 66529.0 miles 53935$Explorer 70900.0 miles 51873$Maxima 73383.0 miles 16513$Camry 32844.0 miles 24797$Yukon 72901.0 miles 43129$G35 8134.0 miles 19240$
Corvette 26579.0 miles 41554$Explorer 8259.0 miles 29985$Maxima 72938.0 miles 52291$Camry 42346.0 miles 33468$Yukon 43206.0 miles 24475$G35 5206.0 miles 52560$
Corvette 45677.0 miles 16131$Explorer 23113.0 miles 39073$Maxima 26945.0 miles 48803$Camry 32349.0 miles 19808$Yukon 71792.0 miles 42096$G35 55736.0 miles 40045$
Corvette 46561.0 miles 31757$Explorer 78546.0 miles 30802$Maxima 38196.0 miles 28577$Camry 12257.0 miles 17587$Yukon 31253.0 miles 41400$G35 66729.0 miles 37455$
Corvette 16496.0 miles 49418$Explorer 66238.0 miles 52934$Maxima 63297.0 miles 42436$Camry 39624.0 miles 36655$Yukon 52743.0 miles 36650$G35 69798.0 miles 34402$


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