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 56193.0 miles 28699$Explorer 68550.0 miles 24879$Maxima 65769.0 miles 48844$Camry 15518.0 miles 16394$Yukon 46803.0 miles 42791$G35 38989.0 miles 37202$
Corvette 59020.0 miles 31807$Explorer 55115.0 miles 48223$Maxima 51827.0 miles 19999$Camry 72293.0 miles 45879$Yukon 19817.0 miles 26548$G35 14950.0 miles 42334$
Corvette 47548.0 miles 32765$Explorer 77955.0 miles 35293$Maxima 64636.0 miles 18949$Camry 41642.0 miles 32724$Yukon 55286.0 miles 20590$G35 71327.0 miles 38710$
Corvette 29188.0 miles 22023$Explorer 62496.0 miles 28987$Maxima 74177.0 miles 29817$Camry 25929.0 miles 27385$Yukon 57123.0 miles 31402$G35 73044.0 miles 42242$
Corvette 15742.0 miles 21785$Explorer 38553.0 miles 31846$Maxima 59737.0 miles 37678$Camry 38714.0 miles 27781$Yukon 76610.0 miles 28168$G35 39792.0 miles 24398$
Corvette 59736.0 miles 34587$Explorer 67726.0 miles 24220$Maxima 33248.0 miles 53881$Camry 5863.0 miles 32580$Yukon 7328.0 miles 46046$G35 42744.0 miles 50038$
Corvette 73605.0 miles 16697$Explorer 14802.0 miles 41187$Maxima 67417.0 miles 44543$Camry 72249.0 miles 24501$Yukon 54013.0 miles 24679$G35 9752.0 miles 54829$
Corvette 51375.0 miles 15800$Explorer 26829.0 miles 31578$Maxima 78930.0 miles 47894$Camry 36201.0 miles 46203$Yukon 14463.0 miles 44477$G35 69886.0 miles 48037$
Corvette 14907.0 miles 23338$Explorer 34115.0 miles 29781$Maxima 52941.0 miles 50659$Camry 43822.0 miles 54059$Yukon 40993.0 miles 46697$G35 54524.0 miles 30877$

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