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 63027.0 miles 19305$Explorer 36336.0 miles 23865$Maxima 37675.0 miles 26912$Camry 39188.0 miles 49120$Yukon 54664.0 miles 24184$G35 45847.0 miles 42956$
Corvette 28402.0 miles 36484$Explorer 32427.0 miles 28169$Maxima 66657.0 miles 53356$Camry 28376.0 miles 23297$Yukon 7633.0 miles 52551$G35 13661.0 miles 51298$
Corvette 37625.0 miles 20144$Explorer 47567.0 miles 34416$Maxima 7790.0 miles 15062$Camry 31848.0 miles 33855$Yukon 23529.0 miles 31266$G35 50410.0 miles 24958$
Corvette 64624.0 miles 33926$Explorer 55895.0 miles 16515$Maxima 71987.0 miles 17272$Camry 64882.0 miles 20283$Yukon 52738.0 miles 54159$G35 59138.0 miles 24144$
Corvette 11220.0 miles 41731$Explorer 52137.0 miles 19226$Maxima 11365.0 miles 18618$Camry 76514.0 miles 39876$Yukon 14216.0 miles 44505$G35 24382.0 miles 52420$
Corvette 38249.0 miles 54823$Explorer 59499.0 miles 53527$Maxima 67959.0 miles 30170$Camry 25323.0 miles 44333$Yukon 55333.0 miles 18220$G35 5019.0 miles 48038$
Corvette 30537.0 miles 26411$Explorer 32224.0 miles 51284$Maxima 6022.0 miles 52552$Camry 73217.0 miles 43792$Yukon 9486.0 miles 37957$G35 35429.0 miles 35514$
Corvette 16120.0 miles 34768$Explorer 26829.0 miles 49866$Maxima 13209.0 miles 36083$Camry 27925.0 miles 29329$Yukon 16486.0 miles 16286$G35 75009.0 miles 41970$
Corvette 64332.0 miles 18517$Explorer 68100.0 miles 29079$Maxima 55561.0 miles 47615$Camry 69950.0 miles 48899$Yukon 71386.0 miles 48668$G35 78639.0 miles 47589$

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