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 33157.0 miles 44813$Explorer 38800.0 miles 40276$Maxima 42716.0 miles 47862$Camry 62239.0 miles 29044$Yukon 13810.0 miles 22787$G35 72294.0 miles 48276$
Corvette 79898.0 miles 21986$Explorer 73569.0 miles 22775$Maxima 48543.0 miles 24710$Camry 51406.0 miles 37027$Yukon 67640.0 miles 32855$G35 35533.0 miles 30762$
Corvette 7022.0 miles 45254$Explorer 73088.0 miles 22341$Maxima 79526.0 miles 31172$Camry 44966.0 miles 34008$Yukon 72391.0 miles 28405$G35 15942.0 miles 20493$
Corvette 79655.0 miles 17298$Explorer 60154.0 miles 39418$Maxima 38492.0 miles 23858$Camry 52915.0 miles 25267$Yukon 45289.0 miles 44571$G35 79189.0 miles 52546$
Corvette 73415.0 miles 53017$Explorer 9684.0 miles 32970$Maxima 45658.0 miles 30475$Camry 66300.0 miles 17521$Yukon 42173.0 miles 33265$G35 79320.0 miles 40055$
Corvette 77618.0 miles 51635$Explorer 23060.0 miles 53867$Maxima 5354.0 miles 44393$Camry 30122.0 miles 40758$Yukon 62388.0 miles 21422$G35 53651.0 miles 52583$
Corvette 6650.0 miles 44358$Explorer 48815.0 miles 19129$Maxima 69823.0 miles 37194$Camry 28038.0 miles 46352$Yukon 66315.0 miles 28062$G35 71772.0 miles 21750$
Corvette 11897.0 miles 50012$Explorer 59025.0 miles 30750$Maxima 53957.0 miles 33850$Camry 37605.0 miles 51599$Yukon 65328.0 miles 29404$G35 26322.0 miles 30926$
Corvette 14335.0 miles 22883$Explorer 67063.0 miles 27581$Maxima 62683.0 miles 30498$Camry 78516.0 miles 48579$Yukon 28516.0 miles 40539$G35 53591.0 miles 44451$

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