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 45817.0 miles 29869$Explorer 55818.0 miles 23828$Maxima 11179.0 miles 45002$Camry 62592.0 miles 51390$Yukon 72221.0 miles 32427$G35 79211.0 miles 43287$
Corvette 49650.0 miles 26258$Explorer 15068.0 miles 24577$Maxima 7492.0 miles 45881$Camry 70189.0 miles 39433$Yukon 11280.0 miles 44184$G35 31193.0 miles 43372$
Corvette 42960.0 miles 40123$Explorer 24092.0 miles 34764$Maxima 57679.0 miles 50095$Camry 8972.0 miles 22502$Yukon 35176.0 miles 51219$G35 70593.0 miles 39199$
Corvette 8154.0 miles 15890$Explorer 15405.0 miles 47650$Maxima 23069.0 miles 39852$Camry 30535.0 miles 47135$Yukon 34744.0 miles 24875$G35 32467.0 miles 23734$
Corvette 20125.0 miles 40676$Explorer 47973.0 miles 49095$Maxima 18467.0 miles 52228$Camry 70595.0 miles 25414$Yukon 19123.0 miles 49974$G35 19140.0 miles 42745$
Corvette 5403.0 miles 40349$Explorer 55298.0 miles 36552$Maxima 24976.0 miles 34646$Camry 29524.0 miles 35295$Yukon 36316.0 miles 50396$G35 41519.0 miles 53139$
Corvette 58491.0 miles 31440$Explorer 46488.0 miles 48374$Maxima 20593.0 miles 18362$Camry 49427.0 miles 38351$Yukon 46307.0 miles 52377$G35 65111.0 miles 37850$
Corvette 69154.0 miles 27388$Explorer 74176.0 miles 26859$Maxima 40010.0 miles 34583$Camry 29515.0 miles 29195$Yukon 46940.0 miles 23263$G35 56070.0 miles 54265$
Corvette 62452.0 miles 47903$Explorer 68550.0 miles 44061$Maxima 57349.0 miles 46490$Camry 75815.0 miles 45088$Yukon 26898.0 miles 24040$G35 26495.0 miles 36042$


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