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 79762.0 miles 22187$Explorer 7913.0 miles 42177$Maxima 11559.0 miles 31661$Camry 29680.0 miles 22210$Yukon 79408.0 miles 54808$G35 10143.0 miles 16073$
Corvette 28446.0 miles 44621$Explorer 52663.0 miles 36643$Maxima 20408.0 miles 39105$Camry 68716.0 miles 54447$Yukon 56019.0 miles 39801$G35 13003.0 miles 20595$
Corvette 28189.0 miles 34454$Explorer 56307.0 miles 17577$Maxima 60286.0 miles 18017$Camry 58688.0 miles 46978$Yukon 28796.0 miles 16461$G35 9247.0 miles 44191$
Corvette 23186.0 miles 42851$Explorer 35643.0 miles 44683$Maxima 73923.0 miles 44688$Camry 40974.0 miles 23766$Yukon 58371.0 miles 36640$G35 27966.0 miles 28952$
Corvette 12193.0 miles 19658$Explorer 19438.0 miles 54305$Maxima 12141.0 miles 50900$Camry 10531.0 miles 27683$Yukon 52335.0 miles 17614$G35 54672.0 miles 38905$
Corvette 55318.0 miles 24282$Explorer 69687.0 miles 18980$Maxima 11626.0 miles 35557$Camry 79375.0 miles 22254$Yukon 22772.0 miles 26432$G35 42693.0 miles 19153$
Corvette 56207.0 miles 54223$Explorer 20040.0 miles 29750$Maxima 65097.0 miles 45402$Camry 62820.0 miles 34390$Yukon 70318.0 miles 38108$G35 26056.0 miles 46203$
Corvette 15020.0 miles 46168$Explorer 38726.0 miles 49598$Maxima 5306.0 miles 44256$Camry 39860.0 miles 25965$Yukon 59000.0 miles 27402$G35 35449.0 miles 16179$
Corvette 12315.0 miles 25906$Explorer 54429.0 miles 39904$Maxima 48762.0 miles 21632$Camry 9295.0 miles 53574$Yukon 65514.0 miles 48893$G35 33135.0 miles 18099$

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