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 45882.0 miles 19253$Explorer 42050.0 miles 47491$Maxima 57856.0 miles 38961$Camry 11671.0 miles 17841$Yukon 16403.0 miles 25177$G35 66256.0 miles 30413$
Corvette 44447.0 miles 16811$Explorer 5045.0 miles 15449$Maxima 28090.0 miles 40044$Camry 43097.0 miles 50561$Yukon 67019.0 miles 46511$G35 60950.0 miles 27968$
Corvette 76050.0 miles 24756$Explorer 6191.0 miles 50279$Maxima 66219.0 miles 31287$Camry 64143.0 miles 39045$Yukon 9220.0 miles 45819$G35 24695.0 miles 33168$
Corvette 36464.0 miles 23925$Explorer 21698.0 miles 43214$Maxima 38361.0 miles 35038$Camry 24971.0 miles 47512$Yukon 56419.0 miles 20630$G35 55801.0 miles 20970$
Corvette 12408.0 miles 24232$Explorer 76855.0 miles 33108$Maxima 22970.0 miles 51283$Camry 35193.0 miles 35506$Yukon 75579.0 miles 30648$G35 7408.0 miles 22284$
Corvette 19604.0 miles 31455$Explorer 56026.0 miles 22084$Maxima 10672.0 miles 34185$Camry 10722.0 miles 45005$Yukon 6212.0 miles 44710$G35 45862.0 miles 20869$
Corvette 10598.0 miles 35324$Explorer 74154.0 miles 40540$Maxima 40571.0 miles 39289$Camry 30435.0 miles 41842$Yukon 65409.0 miles 48935$G35 28711.0 miles 39074$
Corvette 21637.0 miles 42394$Explorer 23997.0 miles 42354$Maxima 41237.0 miles 16910$Camry 9074.0 miles 36279$Yukon 72742.0 miles 40409$G35 74587.0 miles 52281$
Corvette 63798.0 miles 37503$Explorer 51738.0 miles 31745$Maxima 7896.0 miles 41084$Camry 45217.0 miles 34207$Yukon 44940.0 miles 34304$G35 38449.0 miles 24147$


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