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 20265.0 miles 25342$Explorer 17633.0 miles 28542$Maxima 18347.0 miles 35624$Camry 48480.0 miles 15851$Yukon 73223.0 miles 34148$G35 72385.0 miles 49910$
Corvette 48339.0 miles 27269$Explorer 31222.0 miles 37366$Maxima 79894.0 miles 30887$Camry 11717.0 miles 44070$Yukon 5932.0 miles 45206$G35 9642.0 miles 40966$
Corvette 20170.0 miles 35646$Explorer 51941.0 miles 38570$Maxima 22947.0 miles 27834$Camry 13435.0 miles 46029$Yukon 75998.0 miles 29841$G35 78385.0 miles 25766$
Corvette 54834.0 miles 29600$Explorer 36283.0 miles 49527$Maxima 15230.0 miles 54150$Camry 63198.0 miles 49859$Yukon 56100.0 miles 50749$G35 52671.0 miles 45503$
Corvette 16354.0 miles 36534$Explorer 53784.0 miles 16325$Maxima 11132.0 miles 36591$Camry 35488.0 miles 22033$Yukon 10216.0 miles 44050$G35 6300.0 miles 35686$
Corvette 9767.0 miles 53797$Explorer 48452.0 miles 33761$Maxima 34242.0 miles 51576$Camry 71650.0 miles 26915$Yukon 9581.0 miles 52605$G35 50957.0 miles 19319$
Corvette 25331.0 miles 51714$Explorer 19475.0 miles 20331$Maxima 53290.0 miles 34214$Camry 78897.0 miles 37687$Yukon 26034.0 miles 21254$G35 31703.0 miles 33494$
Corvette 46458.0 miles 31698$Explorer 47954.0 miles 17588$Maxima 73862.0 miles 40550$Camry 79272.0 miles 53578$Yukon 31344.0 miles 41740$G35 34961.0 miles 40583$
Corvette 45131.0 miles 48770$Explorer 36422.0 miles 39084$Maxima 54767.0 miles 45371$Camry 56500.0 miles 35024$Yukon 16561.0 miles 25484$G35 45716.0 miles 54442$


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