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 51161.0 miles 42619$Explorer 58498.0 miles 46670$Maxima 27126.0 miles 30303$Camry 46475.0 miles 26340$Yukon 5913.0 miles 38116$G35 35840.0 miles 15505$
Corvette 9742.0 miles 26432$Explorer 12436.0 miles 15225$Maxima 38614.0 miles 29481$Camry 31738.0 miles 43051$Yukon 13276.0 miles 33595$G35 62640.0 miles 27248$
Corvette 71559.0 miles 33691$Explorer 15065.0 miles 25657$Maxima 38900.0 miles 37302$Camry 57016.0 miles 29375$Yukon 35557.0 miles 34073$G35 18201.0 miles 33435$
Corvette 30591.0 miles 19495$Explorer 19488.0 miles 49534$Maxima 44084.0 miles 42774$Camry 48581.0 miles 50197$Yukon 65034.0 miles 40260$G35 65595.0 miles 30137$
Corvette 64722.0 miles 31266$Explorer 30422.0 miles 35075$Maxima 43765.0 miles 53484$Camry 74561.0 miles 48748$Yukon 33804.0 miles 39179$G35 77366.0 miles 43439$
Corvette 6095.0 miles 54116$Explorer 65816.0 miles 36153$Maxima 61435.0 miles 53590$Camry 24068.0 miles 42755$Yukon 56987.0 miles 34605$G35 51811.0 miles 33779$
Corvette 24868.0 miles 47920$Explorer 69073.0 miles 30643$Maxima 44300.0 miles 46366$Camry 65282.0 miles 22938$Yukon 46672.0 miles 24436$G35 70857.0 miles 18236$
Corvette 32929.0 miles 34945$Explorer 62005.0 miles 20990$Maxima 22146.0 miles 38124$Camry 73218.0 miles 25922$Yukon 73512.0 miles 23271$G35 20059.0 miles 15523$
Corvette 78137.0 miles 23657$Explorer 18278.0 miles 25759$Maxima 69480.0 miles 19362$Camry 24509.0 miles 44650$Yukon 79491.0 miles 41933$G35 56909.0 miles 48386$

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