PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
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
Corvette 42627.0 miles 48784$Explorer 49653.0 miles 19200$Maxima 29448.0 miles 52617$Camry 28246.0 miles 21308$Yukon 73036.0 miles 50451$G35 76031.0 miles 16275$
Corvette 13668.0 miles 47567$Explorer 60038.0 miles 54326$Maxima 50489.0 miles 49081$Camry 52435.0 miles 34973$Yukon 53295.0 miles 38117$G35 27906.0 miles 52208$
Corvette 20778.0 miles 39419$Explorer 55992.0 miles 41243$Maxima 36970.0 miles 30718$Camry 15224.0 miles 48974$Yukon 44530.0 miles 49763$G35 8295.0 miles 19928$
Corvette 33743.0 miles 27604$Explorer 59021.0 miles 20231$Maxima 59389.0 miles 17839$Camry 77826.0 miles 46474$Yukon 61737.0 miles 33258$G35 45834.0 miles 43415$
Corvette 76962.0 miles 24166$Explorer 22255.0 miles 31261$Maxima 42902.0 miles 22223$Camry 17402.0 miles 25734$Yukon 56234.0 miles 16994$G35 43844.0 miles 52851$
Corvette 29729.0 miles 29670$Explorer 46709.0 miles 22849$Maxima 64846.0 miles 54918$Camry 44559.0 miles 52678$Yukon 39727.0 miles 33934$G35 16751.0 miles 27980$
Corvette 77197.0 miles 43821$Explorer 11467.0 miles 20073$Maxima 17704.0 miles 53338$Camry 6236.0 miles 29568$Yukon 51249.0 miles 45075$G35 30315.0 miles 34936$
Corvette 67285.0 miles 50695$Explorer 58260.0 miles 53395$Maxima 36249.0 miles 35780$Camry 27932.0 miles 38179$Yukon 8452.0 miles 54162$G35 10998.0 miles 50494$
Corvette 67311.0 miles 19220$Explorer 40895.0 miles 51940$Maxima 6982.0 miles 35853$Camry 68051.0 miles 43911$Yukon 67664.0 miles 26825$G35 32366.0 miles 50132$

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