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 54857.0 miles 20200$Explorer 54427.0 miles 39494$Maxima 6339.0 miles 41675$Camry 63770.0 miles 16851$Yukon 49823.0 miles 35074$G35 32933.0 miles 34024$
Corvette 40130.0 miles 36164$Explorer 60228.0 miles 49785$Maxima 33511.0 miles 48959$Camry 30528.0 miles 46883$Yukon 54812.0 miles 54308$G35 64873.0 miles 21851$
Corvette 12270.0 miles 54258$Explorer 12186.0 miles 15281$Maxima 41876.0 miles 38833$Camry 64043.0 miles 36169$Yukon 16984.0 miles 26500$G35 11154.0 miles 40060$
Corvette 69422.0 miles 34562$Explorer 54711.0 miles 27981$Maxima 60078.0 miles 22325$Camry 30743.0 miles 29265$Yukon 47057.0 miles 32959$G35 59337.0 miles 23956$
Corvette 47414.0 miles 18287$Explorer 34010.0 miles 42429$Maxima 77700.0 miles 35639$Camry 62255.0 miles 30498$Yukon 12684.0 miles 38802$G35 69174.0 miles 34031$
Corvette 16920.0 miles 26222$Explorer 71808.0 miles 20530$Maxima 70581.0 miles 33185$Camry 5517.0 miles 33162$Yukon 75680.0 miles 31628$G35 9391.0 miles 32035$
Corvette 74024.0 miles 44798$Explorer 30195.0 miles 49597$Maxima 14696.0 miles 31013$Camry 36158.0 miles 51549$Yukon 33934.0 miles 53527$G35 27192.0 miles 22287$
Corvette 66086.0 miles 39748$Explorer 6349.0 miles 54115$Maxima 21553.0 miles 29088$Camry 67738.0 miles 31791$Yukon 14976.0 miles 38213$G35 5126.0 miles 27293$
Corvette 67004.0 miles 24042$Explorer 8668.0 miles 39290$Maxima 52118.0 miles 36186$Camry 18082.0 miles 48150$Yukon 5067.0 miles 27561$G35 70034.0 miles 24854$


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