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 8616.0 miles 53887$Explorer 43808.0 miles 40424$Maxima 21410.0 miles 22284$Camry 73182.0 miles 47091$Yukon 34654.0 miles 42944$G35 10363.0 miles 37671$
Corvette 33909.0 miles 15336$Explorer 17767.0 miles 35818$Maxima 67970.0 miles 20621$Camry 54693.0 miles 48681$Yukon 10957.0 miles 44670$G35 74470.0 miles 52220$
Corvette 21481.0 miles 39625$Explorer 46768.0 miles 53988$Maxima 62770.0 miles 30201$Camry 68080.0 miles 34911$Yukon 64009.0 miles 36875$G35 13806.0 miles 21643$
Corvette 69148.0 miles 32663$Explorer 57598.0 miles 38381$Maxima 45161.0 miles 45102$Camry 37803.0 miles 27755$Yukon 62348.0 miles 35977$G35 48883.0 miles 43203$
Corvette 64770.0 miles 30268$Explorer 5364.0 miles 52986$Maxima 72592.0 miles 33424$Camry 34841.0 miles 42540$Yukon 33645.0 miles 27211$G35 54725.0 miles 39314$
Corvette 28486.0 miles 23456$Explorer 45097.0 miles 22865$Maxima 62138.0 miles 46967$Camry 64768.0 miles 23901$Yukon 49215.0 miles 45706$G35 71990.0 miles 52167$
Corvette 64420.0 miles 18213$Explorer 68854.0 miles 45289$Maxima 49699.0 miles 28414$Camry 54315.0 miles 16913$Yukon 14801.0 miles 27005$G35 47211.0 miles 51420$
Corvette 29546.0 miles 26652$Explorer 55320.0 miles 39148$Maxima 66891.0 miles 29799$Camry 47261.0 miles 18290$Yukon 18708.0 miles 44161$G35 31099.0 miles 43366$
Corvette 25066.0 miles 50130$Explorer 7269.0 miles 42450$Maxima 6196.0 miles 18061$Camry 44800.0 miles 52147$Yukon 14068.0 miles 33051$G35 51290.0 miles 27331$

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