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 79983.0 miles 52080$Explorer 19077.0 miles 30059$Maxima 11186.0 miles 24906$Camry 22596.0 miles 30999$Yukon 21228.0 miles 42657$G35 37498.0 miles 52896$
Corvette 6514.0 miles 50784$Explorer 61518.0 miles 26409$Maxima 22824.0 miles 52877$Camry 55214.0 miles 34460$Yukon 22053.0 miles 24924$G35 77528.0 miles 39648$
Corvette 30440.0 miles 27527$Explorer 57128.0 miles 32187$Maxima 25870.0 miles 33241$Camry 25380.0 miles 31984$Yukon 75610.0 miles 49707$G35 17567.0 miles 49270$
Corvette 35347.0 miles 31867$Explorer 6815.0 miles 22395$Maxima 7613.0 miles 23814$Camry 43893.0 miles 36731$Yukon 53370.0 miles 27469$G35 23956.0 miles 39472$
Corvette 32745.0 miles 53242$Explorer 11866.0 miles 53144$Maxima 50240.0 miles 45180$Camry 59684.0 miles 28349$Yukon 17475.0 miles 30564$G35 8197.0 miles 24284$
Corvette 75437.0 miles 50171$Explorer 67224.0 miles 31697$Maxima 66040.0 miles 44461$Camry 28467.0 miles 48805$Yukon 41239.0 miles 52142$G35 76214.0 miles 27600$
Corvette 47721.0 miles 28504$Explorer 36399.0 miles 24688$Maxima 33903.0 miles 49022$Camry 70207.0 miles 21572$Yukon 51508.0 miles 45582$G35 50676.0 miles 34670$
Corvette 12235.0 miles 17161$Explorer 6066.0 miles 36598$Maxima 44304.0 miles 16187$Camry 34529.0 miles 49610$Yukon 20908.0 miles 26197$G35 49915.0 miles 33123$
Corvette 46229.0 miles 53960$Explorer 66894.0 miles 52327$Maxima 34406.0 miles 23842$Camry 58596.0 miles 51072$Yukon 8540.0 miles 27916$G35 9698.0 miles 19013$

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