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 75027.0 miles 17553$Explorer 43711.0 miles 46354$Maxima 56484.0 miles 33832$Camry 64866.0 miles 40299$Yukon 34626.0 miles 46076$G35 20310.0 miles 28873$
Corvette 75280.0 miles 29139$Explorer 74335.0 miles 21463$Maxima 46913.0 miles 35294$Camry 55791.0 miles 49239$Yukon 33875.0 miles 48903$G35 30852.0 miles 42465$
Corvette 77969.0 miles 47426$Explorer 60139.0 miles 16155$Maxima 12386.0 miles 16678$Camry 35331.0 miles 45080$Yukon 62038.0 miles 43464$G35 62203.0 miles 26430$
Corvette 26603.0 miles 22068$Explorer 39778.0 miles 43797$Maxima 15728.0 miles 18483$Camry 24707.0 miles 16188$Yukon 68740.0 miles 46634$G35 67664.0 miles 32689$
Corvette 7811.0 miles 48263$Explorer 40243.0 miles 29034$Maxima 73285.0 miles 25549$Camry 12306.0 miles 17044$Yukon 18985.0 miles 42439$G35 69916.0 miles 41723$
Corvette 62559.0 miles 15377$Explorer 55821.0 miles 26768$Maxima 48954.0 miles 27063$Camry 16008.0 miles 18181$Yukon 26933.0 miles 47776$G35 15746.0 miles 33216$
Corvette 34211.0 miles 28766$Explorer 61542.0 miles 23176$Maxima 21083.0 miles 40313$Camry 18954.0 miles 26378$Yukon 21198.0 miles 38719$G35 62857.0 miles 24057$
Corvette 34592.0 miles 47471$Explorer 24719.0 miles 34342$Maxima 56710.0 miles 49293$Camry 5718.0 miles 28187$Yukon 74960.0 miles 48936$G35 76197.0 miles 40002$
Corvette 48354.0 miles 47567$Explorer 62139.0 miles 45405$Maxima 22751.0 miles 23156$Camry 59327.0 miles 37472$Yukon 28790.0 miles 48803$G35 28902.0 miles 44330$

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