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 70763.0 miles 48696$Explorer 47745.0 miles 36601$Maxima 28880.0 miles 17698$Camry 63832.0 miles 53497$Yukon 14415.0 miles 19652$G35 76637.0 miles 21647$
Corvette 62635.0 miles 22188$Explorer 42720.0 miles 16897$Maxima 61371.0 miles 25051$Camry 56854.0 miles 41572$Yukon 61758.0 miles 47103$G35 65318.0 miles 25005$
Corvette 25387.0 miles 31011$Explorer 24419.0 miles 41097$Maxima 23353.0 miles 51163$Camry 50948.0 miles 15929$Yukon 39198.0 miles 37247$G35 19160.0 miles 23063$
Corvette 12350.0 miles 49207$Explorer 59297.0 miles 39446$Maxima 27170.0 miles 15124$Camry 32735.0 miles 53791$Yukon 63243.0 miles 51885$G35 63945.0 miles 32710$
Corvette 41327.0 miles 53254$Explorer 15055.0 miles 18317$Maxima 27430.0 miles 32404$Camry 72108.0 miles 44985$Yukon 56162.0 miles 25231$G35 20785.0 miles 46580$
Corvette 13608.0 miles 18635$Explorer 7755.0 miles 49501$Maxima 18130.0 miles 28442$Camry 44418.0 miles 22039$Yukon 53549.0 miles 35762$G35 61188.0 miles 49124$
Corvette 29948.0 miles 42471$Explorer 19738.0 miles 39867$Maxima 27838.0 miles 35845$Camry 70226.0 miles 23449$Yukon 44274.0 miles 22645$G35 72103.0 miles 16923$
Corvette 32996.0 miles 54757$Explorer 55501.0 miles 32528$Maxima 19577.0 miles 42404$Camry 54799.0 miles 20281$Yukon 42127.0 miles 51220$G35 10497.0 miles 28887$
Corvette 34338.0 miles 24944$Explorer 9040.0 miles 23778$Maxima 41142.0 miles 37394$Camry 45798.0 miles 48005$Yukon 13047.0 miles 46858$G35 63831.0 miles 23401$

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