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 54515.0 miles 28240$Explorer 40116.0 miles 16695$Maxima 74319.0 miles 32144$Camry 51292.0 miles 49931$Yukon 67955.0 miles 18451$G35 40008.0 miles 44877$
Corvette 41596.0 miles 22716$Explorer 57083.0 miles 28514$Maxima 34449.0 miles 21113$Camry 51928.0 miles 25630$Yukon 33137.0 miles 34893$G35 22388.0 miles 41551$
Corvette 46332.0 miles 25243$Explorer 12171.0 miles 16529$Maxima 52037.0 miles 34503$Camry 8698.0 miles 40836$Yukon 18406.0 miles 30044$G35 58095.0 miles 41263$
Corvette 24430.0 miles 38038$Explorer 12545.0 miles 41413$Maxima 63684.0 miles 51180$Camry 56816.0 miles 15648$Yukon 5384.0 miles 47827$G35 59724.0 miles 45616$
Corvette 33787.0 miles 40410$Explorer 30269.0 miles 18063$Maxima 57024.0 miles 42278$Camry 31751.0 miles 29165$Yukon 44836.0 miles 50398$G35 73201.0 miles 24347$
Corvette 44661.0 miles 26334$Explorer 46081.0 miles 26204$Maxima 63086.0 miles 28799$Camry 55627.0 miles 27389$Yukon 66516.0 miles 21601$G35 37601.0 miles 21143$
Corvette 41771.0 miles 29804$Explorer 75289.0 miles 27083$Maxima 25118.0 miles 28284$Camry 18595.0 miles 37828$Yukon 26688.0 miles 28324$G35 68370.0 miles 28520$
Corvette 66552.0 miles 42872$Explorer 71263.0 miles 46299$Maxima 53132.0 miles 33774$Camry 74668.0 miles 33886$Yukon 73413.0 miles 36747$G35 76255.0 miles 46587$
Corvette 23742.0 miles 50678$Explorer 57936.0 miles 46974$Maxima 38075.0 miles 30583$Camry 33523.0 miles 32804$Yukon 43805.0 miles 53142$G35 12983.0 miles 52977$


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