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 63568.0 miles 42936$Explorer 74232.0 miles 52980$Maxima 9088.0 miles 42855$Camry 19830.0 miles 17383$Yukon 24100.0 miles 28526$G35 25958.0 miles 40062$
Corvette 36005.0 miles 37941$Explorer 23238.0 miles 34847$Maxima 25869.0 miles 49025$Camry 16240.0 miles 45808$Yukon 27958.0 miles 44373$G35 10455.0 miles 27342$
Corvette 42312.0 miles 24587$Explorer 48368.0 miles 26482$Maxima 11967.0 miles 24596$Camry 6294.0 miles 44272$Yukon 7385.0 miles 47313$G35 57453.0 miles 27363$
Corvette 72675.0 miles 48755$Explorer 59744.0 miles 30417$Maxima 68532.0 miles 28664$Camry 66029.0 miles 25352$Yukon 79241.0 miles 53965$G35 46591.0 miles 45753$
Corvette 42287.0 miles 15485$Explorer 14261.0 miles 20127$Maxima 36149.0 miles 19653$Camry 79403.0 miles 36982$Yukon 10639.0 miles 47655$G35 44181.0 miles 24055$
Corvette 71109.0 miles 45736$Explorer 75208.0 miles 15516$Maxima 12327.0 miles 50650$Camry 37671.0 miles 38159$Yukon 23928.0 miles 32082$G35 5908.0 miles 25521$
Corvette 48887.0 miles 15676$Explorer 27191.0 miles 30230$Maxima 40446.0 miles 40626$Camry 33063.0 miles 24450$Yukon 27630.0 miles 52891$G35 18885.0 miles 38928$
Corvette 48009.0 miles 18170$Explorer 66136.0 miles 46601$Maxima 11046.0 miles 37642$Camry 78880.0 miles 42656$Yukon 69542.0 miles 34159$G35 67577.0 miles 54628$
Corvette 26469.0 miles 26549$Explorer 29373.0 miles 15409$Maxima 75518.0 miles 51516$Camry 78449.0 miles 24655$Yukon 36949.0 miles 20768$G35 65164.0 miles 17796$


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