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 36631.0 miles 52761$Explorer 24276.0 miles 30479$Maxima 23942.0 miles 52181$Camry 29681.0 miles 28259$Yukon 64744.0 miles 38370$G35 6941.0 miles 52646$
Corvette 18549.0 miles 23114$Explorer 55665.0 miles 19029$Maxima 22842.0 miles 30571$Camry 25066.0 miles 49823$Yukon 26030.0 miles 51922$G35 33661.0 miles 46105$
Corvette 69489.0 miles 21592$Explorer 17631.0 miles 36505$Maxima 68645.0 miles 19107$Camry 9948.0 miles 51729$Yukon 55562.0 miles 22451$G35 28599.0 miles 15221$
Corvette 58677.0 miles 47659$Explorer 8789.0 miles 45269$Maxima 72587.0 miles 25293$Camry 74912.0 miles 52934$Yukon 22918.0 miles 24732$G35 37825.0 miles 53453$
Corvette 23509.0 miles 34590$Explorer 56789.0 miles 17359$Maxima 49323.0 miles 43819$Camry 36193.0 miles 24792$Yukon 62942.0 miles 31286$G35 29693.0 miles 47515$
Corvette 75888.0 miles 52076$Explorer 27521.0 miles 17451$Maxima 30993.0 miles 15337$Camry 51538.0 miles 17156$Yukon 44780.0 miles 30654$G35 7788.0 miles 51517$
Corvette 76101.0 miles 24564$Explorer 14378.0 miles 19247$Maxima 33711.0 miles 37422$Camry 37496.0 miles 36124$Yukon 29048.0 miles 33633$G35 11043.0 miles 30302$
Corvette 77464.0 miles 22243$Explorer 72776.0 miles 50413$Maxima 55689.0 miles 34822$Camry 20766.0 miles 30961$Yukon 74080.0 miles 18608$G35 55142.0 miles 19992$
Corvette 69052.0 miles 28102$Explorer 60723.0 miles 28978$Maxima 28647.0 miles 36446$Camry 68072.0 miles 18890$Yukon 30824.0 miles 30236$G35 31562.0 miles 31491$

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