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 34453.0 miles 54501$Explorer 24273.0 miles 23653$Maxima 55031.0 miles 51980$Camry 67735.0 miles 36376$Yukon 56460.0 miles 47790$G35 66735.0 miles 20322$
Corvette 21743.0 miles 33578$Explorer 30479.0 miles 21534$Maxima 16121.0 miles 15500$Camry 5658.0 miles 39006$Yukon 45362.0 miles 32910$G35 7946.0 miles 49809$
Corvette 50321.0 miles 54880$Explorer 33385.0 miles 51322$Maxima 12308.0 miles 48186$Camry 52728.0 miles 27259$Yukon 6524.0 miles 52551$G35 41771.0 miles 36326$
Corvette 62666.0 miles 26693$Explorer 46013.0 miles 43004$Maxima 18651.0 miles 53012$Camry 63141.0 miles 33253$Yukon 46118.0 miles 44361$G35 55706.0 miles 41944$
Corvette 5041.0 miles 46579$Explorer 52116.0 miles 52489$Maxima 51671.0 miles 25763$Camry 32773.0 miles 49332$Yukon 12103.0 miles 24521$G35 70166.0 miles 30141$
Corvette 21390.0 miles 46382$Explorer 39067.0 miles 26400$Maxima 74667.0 miles 16556$Camry 60104.0 miles 34725$Yukon 47277.0 miles 15587$G35 78081.0 miles 42460$
Corvette 38203.0 miles 45408$Explorer 23171.0 miles 41447$Maxima 19469.0 miles 46406$Camry 48256.0 miles 43284$Yukon 7217.0 miles 30263$G35 76269.0 miles 38611$
Corvette 77491.0 miles 54591$Explorer 78769.0 miles 54121$Maxima 5474.0 miles 41367$Camry 33324.0 miles 27957$Yukon 69208.0 miles 19880$G35 40236.0 miles 20821$
Corvette 33080.0 miles 42913$Explorer 24157.0 miles 40530$Maxima 37784.0 miles 23848$Camry 70582.0 miles 19793$Yukon 8742.0 miles 48895$G35 27641.0 miles 35569$

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