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 46613.0 miles 16187$Explorer 59016.0 miles 45768$Maxima 73584.0 miles 18844$Camry 30514.0 miles 47761$Yukon 34173.0 miles 44014$G35 42546.0 miles 17287$
Corvette 30533.0 miles 21328$Explorer 70339.0 miles 37498$Maxima 25778.0 miles 44787$Camry 56833.0 miles 45917$Yukon 38245.0 miles 15766$G35 76119.0 miles 39561$
Corvette 58373.0 miles 15463$Explorer 66000.0 miles 18373$Maxima 18507.0 miles 27846$Camry 30511.0 miles 25821$Yukon 62456.0 miles 46244$G35 69457.0 miles 20177$
Corvette 9860.0 miles 39538$Explorer 76865.0 miles 31213$Maxima 44992.0 miles 30733$Camry 33151.0 miles 16573$Yukon 46699.0 miles 37460$G35 16439.0 miles 39298$
Corvette 32643.0 miles 30523$Explorer 43093.0 miles 54825$Maxima 23562.0 miles 39686$Camry 5979.0 miles 29152$Yukon 20750.0 miles 17169$G35 31099.0 miles 17057$
Corvette 14294.0 miles 22988$Explorer 52430.0 miles 41347$Maxima 29311.0 miles 50474$Camry 50170.0 miles 43168$Yukon 45136.0 miles 20113$G35 70234.0 miles 50386$
Corvette 32406.0 miles 54974$Explorer 12878.0 miles 35686$Maxima 29261.0 miles 53516$Camry 60863.0 miles 28218$Yukon 57893.0 miles 15340$G35 30101.0 miles 46934$
Corvette 78511.0 miles 25112$Explorer 40543.0 miles 35052$Maxima 18408.0 miles 38685$Camry 20504.0 miles 24948$Yukon 58409.0 miles 42400$G35 8022.0 miles 22676$
Corvette 78915.0 miles 20585$Explorer 31669.0 miles 38773$Maxima 8687.0 miles 43123$Camry 64490.0 miles 22270$Yukon 24210.0 miles 22841$G35 18548.0 miles 22275$

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