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 61058.0 miles 18262$Explorer 30981.0 miles 17284$Maxima 37035.0 miles 52636$Camry 43109.0 miles 42340$Yukon 59575.0 miles 35086$G35 56904.0 miles 52807$
Corvette 7746.0 miles 23393$Explorer 61216.0 miles 47413$Maxima 73726.0 miles 54407$Camry 52154.0 miles 39442$Yukon 48956.0 miles 33544$G35 15350.0 miles 44383$
Corvette 77502.0 miles 22298$Explorer 65534.0 miles 30410$Maxima 71092.0 miles 19564$Camry 64930.0 miles 22153$Yukon 47816.0 miles 39649$G35 55411.0 miles 52738$
Corvette 6997.0 miles 34668$Explorer 50467.0 miles 19940$Maxima 46204.0 miles 25669$Camry 17957.0 miles 50437$Yukon 58247.0 miles 45294$G35 58034.0 miles 42091$
Corvette 9860.0 miles 41268$Explorer 25742.0 miles 45492$Maxima 23079.0 miles 22481$Camry 28719.0 miles 37771$Yukon 9429.0 miles 22197$G35 35978.0 miles 42442$
Corvette 38681.0 miles 30750$Explorer 29299.0 miles 19689$Maxima 73127.0 miles 18321$Camry 49888.0 miles 19590$Yukon 79396.0 miles 25897$G35 12531.0 miles 45719$
Corvette 60808.0 miles 49543$Explorer 6670.0 miles 26385$Maxima 55821.0 miles 42782$Camry 14175.0 miles 19971$Yukon 23594.0 miles 24960$G35 30356.0 miles 20022$
Corvette 15722.0 miles 21502$Explorer 42805.0 miles 18148$Maxima 12210.0 miles 54104$Camry 9677.0 miles 40731$Yukon 43611.0 miles 38761$G35 26817.0 miles 48454$
Corvette 75460.0 miles 50991$Explorer 21496.0 miles 31320$Maxima 36654.0 miles 28837$Camry 77324.0 miles 30315$Yukon 37880.0 miles 23049$G35 67079.0 miles 44910$


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