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 52785.0 miles 18313$Explorer 53359.0 miles 29764$Maxima 72962.0 miles 52180$Camry 43298.0 miles 27490$Yukon 34333.0 miles 54786$G35 15487.0 miles 35100$
Corvette 15932.0 miles 34711$Explorer 79587.0 miles 25098$Maxima 60523.0 miles 37225$Camry 69176.0 miles 36456$Yukon 71398.0 miles 18946$G35 37044.0 miles 48803$
Corvette 64808.0 miles 40272$Explorer 66304.0 miles 16854$Maxima 62273.0 miles 17457$Camry 27416.0 miles 22161$Yukon 28800.0 miles 18180$G35 28999.0 miles 28065$
Corvette 10485.0 miles 41373$Explorer 11871.0 miles 44235$Maxima 75186.0 miles 22536$Camry 21752.0 miles 54944$Yukon 28981.0 miles 54492$G35 55688.0 miles 20083$
Corvette 16323.0 miles 21146$Explorer 64483.0 miles 33190$Maxima 55684.0 miles 48753$Camry 36028.0 miles 31214$Yukon 14352.0 miles 42860$G35 66456.0 miles 28346$
Corvette 64556.0 miles 31498$Explorer 29487.0 miles 35323$Maxima 6297.0 miles 34998$Camry 75740.0 miles 49622$Yukon 21793.0 miles 44785$G35 41967.0 miles 19944$
Corvette 24170.0 miles 25152$Explorer 40131.0 miles 32232$Maxima 5196.0 miles 28784$Camry 79048.0 miles 32485$Yukon 74205.0 miles 49009$G35 9104.0 miles 26721$
Corvette 26941.0 miles 20371$Explorer 73682.0 miles 48627$Maxima 10083.0 miles 15046$Camry 17991.0 miles 34009$Yukon 79922.0 miles 37450$G35 39259.0 miles 28368$
Corvette 65844.0 miles 35591$Explorer 37946.0 miles 32492$Maxima 77888.0 miles 36368$Camry 24056.0 miles 47503$Yukon 61249.0 miles 45105$G35 71461.0 miles 53638$

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