PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
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
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 20815.0 miles 37968$Explorer 54640.0 miles 39195$Maxima 41452.0 miles 22374$Camry 40916.0 miles 22043$Yukon 34281.0 miles 22705$G35 29704.0 miles 15963$
Corvette 25259.0 miles 17468$Explorer 20487.0 miles 17950$Maxima 26088.0 miles 22888$Camry 37641.0 miles 52378$Yukon 15290.0 miles 49035$G35 60040.0 miles 40321$
Corvette 76929.0 miles 21631$Explorer 29872.0 miles 43985$Maxima 66113.0 miles 19329$Camry 56622.0 miles 33696$Yukon 25693.0 miles 21640$G35 9855.0 miles 51770$
Corvette 49123.0 miles 19527$Explorer 36341.0 miles 15334$Maxima 7943.0 miles 17954$Camry 21546.0 miles 31779$Yukon 22880.0 miles 47641$G35 73210.0 miles 30787$
Corvette 44688.0 miles 19701$Explorer 79544.0 miles 18254$Maxima 44879.0 miles 17772$Camry 53361.0 miles 21900$Yukon 8552.0 miles 19746$G35 45490.0 miles 34671$
Corvette 58756.0 miles 17221$Explorer 69990.0 miles 37229$Maxima 62381.0 miles 28350$Camry 38081.0 miles 48812$Yukon 65780.0 miles 17926$G35 21590.0 miles 34245$
Corvette 55547.0 miles 32122$Explorer 10864.0 miles 48179$Maxima 79841.0 miles 22667$Camry 55654.0 miles 39557$Yukon 35334.0 miles 15372$G35 53135.0 miles 46495$
Corvette 61852.0 miles 33550$Explorer 13464.0 miles 24151$Maxima 36480.0 miles 43329$Camry 20290.0 miles 32612$Yukon 15452.0 miles 33401$G35 29586.0 miles 31785$
Corvette 11167.0 miles 42030$Explorer 29660.0 miles 42340$Maxima 15941.0 miles 50798$Camry 77891.0 miles 17624$Yukon 57484.0 miles 48713$G35 53234.0 miles 40243$


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