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 50363.0 miles 33335$Explorer 66652.0 miles 50224$Maxima 16940.0 miles 39585$Camry 64972.0 miles 35481$Yukon 62339.0 miles 42972$G35 32408.0 miles 38825$
Corvette 52630.0 miles 52658$Explorer 35843.0 miles 26410$Maxima 37176.0 miles 28400$Camry 66348.0 miles 34741$Yukon 5576.0 miles 45633$G35 63680.0 miles 20071$
Corvette 74788.0 miles 39825$Explorer 61009.0 miles 37819$Maxima 26501.0 miles 38641$Camry 23015.0 miles 21157$Yukon 73540.0 miles 52719$G35 41561.0 miles 38356$
Corvette 16704.0 miles 40177$Explorer 22645.0 miles 39302$Maxima 52774.0 miles 44061$Camry 14358.0 miles 39944$Yukon 11542.0 miles 36032$G35 25571.0 miles 37171$
Corvette 63515.0 miles 15668$Explorer 59110.0 miles 25913$Maxima 54206.0 miles 53266$Camry 34290.0 miles 44962$Yukon 58038.0 miles 29653$G35 76198.0 miles 41345$
Corvette 58545.0 miles 37924$Explorer 10909.0 miles 28040$Maxima 77230.0 miles 33925$Camry 10220.0 miles 49808$Yukon 70229.0 miles 50627$G35 45433.0 miles 15100$
Corvette 30769.0 miles 21069$Explorer 33393.0 miles 52089$Maxima 65638.0 miles 44802$Camry 65207.0 miles 47469$Yukon 37248.0 miles 33743$G35 76887.0 miles 24924$
Corvette 35629.0 miles 41715$Explorer 14716.0 miles 18556$Maxima 36582.0 miles 31733$Camry 27043.0 miles 54423$Yukon 79572.0 miles 15991$G35 33446.0 miles 38950$
Corvette 12837.0 miles 17546$Explorer 12778.0 miles 39633$Maxima 77124.0 miles 47630$Camry 71971.0 miles 36489$Yukon 65774.0 miles 39832$G35 39232.0 miles 32487$


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