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 78523.0 miles 39990$Explorer 28400.0 miles 31744$Maxima 30409.0 miles 48575$Camry 64503.0 miles 26958$Yukon 15453.0 miles 50077$G35 65751.0 miles 19179$
Corvette 64288.0 miles 21474$Explorer 38139.0 miles 37356$Maxima 65770.0 miles 37355$Camry 77198.0 miles 53933$Yukon 65282.0 miles 49038$G35 51922.0 miles 17745$
Corvette 55184.0 miles 28657$Explorer 77688.0 miles 49427$Maxima 38549.0 miles 44542$Camry 75602.0 miles 45092$Yukon 74969.0 miles 40344$G35 25532.0 miles 51605$
Corvette 26498.0 miles 46130$Explorer 47107.0 miles 33239$Maxima 72199.0 miles 16975$Camry 25111.0 miles 16088$Yukon 33734.0 miles 25386$G35 27429.0 miles 51101$
Corvette 20856.0 miles 26849$Explorer 79645.0 miles 40495$Maxima 14602.0 miles 18584$Camry 43877.0 miles 23294$Yukon 6187.0 miles 30628$G35 42291.0 miles 46273$
Corvette 46800.0 miles 19696$Explorer 51343.0 miles 39424$Maxima 51578.0 miles 15513$Camry 5692.0 miles 43196$Yukon 49694.0 miles 53219$G35 41064.0 miles 27397$
Corvette 69181.0 miles 37345$Explorer 31056.0 miles 26193$Maxima 13496.0 miles 36003$Camry 63329.0 miles 27434$Yukon 51598.0 miles 16603$G35 51853.0 miles 51927$
Corvette 48165.0 miles 24667$Explorer 15587.0 miles 33086$Maxima 39061.0 miles 24278$Camry 67056.0 miles 31598$Yukon 71797.0 miles 21691$G35 13940.0 miles 49173$
Corvette 5639.0 miles 53946$Explorer 62805.0 miles 53873$Maxima 41517.0 miles 36036$Camry 71174.0 miles 51850$Yukon 31571.0 miles 19571$G35 79170.0 miles 26703$


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