PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
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
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 37514.0 miles 33014$Explorer 21368.0 miles 21958$Maxima 77783.0 miles 41048$Camry 8599.0 miles 22411$Yukon 68675.0 miles 51978$G35 21014.0 miles 18072$
Corvette 38247.0 miles 47372$Explorer 56472.0 miles 48273$Maxima 30026.0 miles 52535$Camry 79213.0 miles 54408$Yukon 75403.0 miles 54338$G35 49942.0 miles 50126$
Corvette 69453.0 miles 31851$Explorer 65536.0 miles 24128$Maxima 22280.0 miles 21880$Camry 66055.0 miles 34324$Yukon 77163.0 miles 47268$G35 38946.0 miles 37593$
Corvette 51930.0 miles 38040$Explorer 63025.0 miles 41556$Maxima 67066.0 miles 16642$Camry 59726.0 miles 23479$Yukon 75972.0 miles 18828$G35 72365.0 miles 25954$
Corvette 19064.0 miles 47757$Explorer 24586.0 miles 52986$Maxima 75903.0 miles 25431$Camry 22291.0 miles 24115$Yukon 53161.0 miles 31082$G35 45678.0 miles 33453$
Corvette 23814.0 miles 39594$Explorer 30628.0 miles 54389$Maxima 68989.0 miles 48492$Camry 35538.0 miles 44077$Yukon 63679.0 miles 45289$G35 13339.0 miles 49302$
Corvette 14904.0 miles 20105$Explorer 6930.0 miles 28275$Maxima 11241.0 miles 42116$Camry 11318.0 miles 23696$Yukon 45181.0 miles 41912$G35 28450.0 miles 51230$
Corvette 32090.0 miles 35864$Explorer 49086.0 miles 30533$Maxima 65468.0 miles 37085$Camry 37969.0 miles 35985$Yukon 24221.0 miles 47925$G35 9869.0 miles 23194$
Corvette 6514.0 miles 52492$Explorer 23240.0 miles 54375$Maxima 45982.0 miles 22497$Camry 61429.0 miles 15864$Yukon 68752.0 miles 28482$G35 62913.0 miles 39196$


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