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 22910.0 miles 48344$Explorer 53888.0 miles 40973$Maxima 66704.0 miles 30662$Camry 63322.0 miles 52554$Yukon 66058.0 miles 50960$G35 21127.0 miles 22483$
Corvette 19669.0 miles 22322$Explorer 7090.0 miles 24818$Maxima 45915.0 miles 27708$Camry 17974.0 miles 45584$Yukon 38388.0 miles 47813$G35 32588.0 miles 33694$
Corvette 14290.0 miles 44141$Explorer 11578.0 miles 18507$Maxima 56493.0 miles 53843$Camry 73931.0 miles 41795$Yukon 19735.0 miles 34017$G35 33032.0 miles 47125$
Corvette 63019.0 miles 41963$Explorer 21202.0 miles 20476$Maxima 8269.0 miles 52649$Camry 60347.0 miles 47092$Yukon 75707.0 miles 43239$G35 51803.0 miles 21923$
Corvette 47475.0 miles 26367$Explorer 14008.0 miles 35661$Maxima 54555.0 miles 20498$Camry 64906.0 miles 42242$Yukon 73828.0 miles 48275$G35 36689.0 miles 44805$
Corvette 33992.0 miles 33533$Explorer 9636.0 miles 44535$Maxima 63781.0 miles 29082$Camry 49023.0 miles 37494$Yukon 8788.0 miles 21608$G35 36253.0 miles 29250$
Corvette 52576.0 miles 31711$Explorer 74364.0 miles 25366$Maxima 14864.0 miles 37369$Camry 26881.0 miles 43231$Yukon 61585.0 miles 51290$G35 8537.0 miles 53149$
Corvette 63062.0 miles 18116$Explorer 38946.0 miles 47914$Maxima 23082.0 miles 39102$Camry 17288.0 miles 31015$Yukon 37560.0 miles 48564$G35 66142.0 miles 26772$
Corvette 69231.0 miles 37841$Explorer 48316.0 miles 35329$Maxima 63481.0 miles 22820$Camry 76066.0 miles 17947$Yukon 9431.0 miles 41962$G35 32277.0 miles 54123$

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