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 78727.0 miles 15020$Explorer 40882.0 miles 43121$Maxima 43192.0 miles 24213$Camry 45110.0 miles 33420$Yukon 79873.0 miles 44050$G35 27083.0 miles 19876$
Corvette 17951.0 miles 16253$Explorer 8768.0 miles 37444$Maxima 70505.0 miles 44212$Camry 42795.0 miles 24125$Yukon 75780.0 miles 36065$G35 73305.0 miles 30101$
Corvette 40936.0 miles 22737$Explorer 65101.0 miles 52440$Maxima 10962.0 miles 25750$Camry 78249.0 miles 22800$Yukon 79678.0 miles 30328$G35 58411.0 miles 39621$
Corvette 14590.0 miles 37630$Explorer 72079.0 miles 19634$Maxima 55844.0 miles 48210$Camry 62289.0 miles 49719$Yukon 15819.0 miles 48084$G35 21500.0 miles 23233$
Corvette 9020.0 miles 18564$Explorer 73932.0 miles 52999$Maxima 26244.0 miles 34151$Camry 43284.0 miles 21998$Yukon 75848.0 miles 23567$G35 34629.0 miles 25060$
Corvette 54050.0 miles 48136$Explorer 64773.0 miles 33500$Maxima 42308.0 miles 16977$Camry 51716.0 miles 20001$Yukon 75892.0 miles 49331$G35 53065.0 miles 26129$
Corvette 19288.0 miles 38999$Explorer 9170.0 miles 35723$Maxima 46958.0 miles 47633$Camry 18882.0 miles 31357$Yukon 20850.0 miles 36384$G35 37051.0 miles 52573$
Corvette 27507.0 miles 24044$Explorer 62258.0 miles 53879$Maxima 15406.0 miles 19112$Camry 5078.0 miles 49372$Yukon 59733.0 miles 39780$G35 46349.0 miles 44229$
Corvette 36371.0 miles 45624$Explorer 46024.0 miles 25264$Maxima 70556.0 miles 29470$Camry 44823.0 miles 26147$Yukon 53399.0 miles 43089$G35 56796.0 miles 38968$


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