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 54254.0 miles 39318$Explorer 22028.0 miles 19745$Maxima 35337.0 miles 18112$Camry 30475.0 miles 43488$Yukon 37578.0 miles 37352$G35 53625.0 miles 47927$
Corvette 39693.0 miles 53332$Explorer 38265.0 miles 49359$Maxima 77913.0 miles 54707$Camry 68627.0 miles 15172$Yukon 65284.0 miles 23578$G35 43488.0 miles 15003$
Corvette 19801.0 miles 29272$Explorer 20381.0 miles 43533$Maxima 35774.0 miles 30332$Camry 66408.0 miles 35793$Yukon 6738.0 miles 41987$G35 72938.0 miles 28563$
Corvette 39633.0 miles 35638$Explorer 33601.0 miles 41386$Maxima 28565.0 miles 34173$Camry 76861.0 miles 42306$Yukon 42942.0 miles 48976$G35 29747.0 miles 42203$
Corvette 52278.0 miles 41808$Explorer 15689.0 miles 26432$Maxima 51589.0 miles 37540$Camry 6903.0 miles 39072$Yukon 41986.0 miles 28508$G35 59012.0 miles 43910$
Corvette 62764.0 miles 42256$Explorer 25272.0 miles 44464$Maxima 71326.0 miles 30982$Camry 77383.0 miles 24030$Yukon 25985.0 miles 34997$G35 61538.0 miles 19268$
Corvette 62587.0 miles 48554$Explorer 8893.0 miles 35894$Maxima 65518.0 miles 51330$Camry 18693.0 miles 29458$Yukon 40828.0 miles 47633$G35 19135.0 miles 19228$
Corvette 55481.0 miles 33951$Explorer 47723.0 miles 20829$Maxima 72440.0 miles 15434$Camry 28083.0 miles 42695$Yukon 58956.0 miles 24357$G35 38617.0 miles 45539$
Corvette 30456.0 miles 42438$Explorer 24505.0 miles 36905$Maxima 56132.0 miles 30907$Camry 51198.0 miles 45230$Yukon 76124.0 miles 42009$G35 43115.0 miles 32181$


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