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 18417.0 miles 15815$Explorer 26246.0 miles 27243$Maxima 7456.0 miles 30170$Camry 58554.0 miles 32143$Yukon 39043.0 miles 45307$G35 30290.0 miles 29060$
Corvette 74042.0 miles 25359$Explorer 67548.0 miles 29087$Maxima 27593.0 miles 42784$Camry 9406.0 miles 31708$Yukon 10705.0 miles 17288$G35 40781.0 miles 29419$
Corvette 13800.0 miles 50119$Explorer 67906.0 miles 52553$Maxima 61402.0 miles 18910$Camry 76301.0 miles 35127$Yukon 76612.0 miles 31941$G35 17141.0 miles 19050$
Corvette 22062.0 miles 26208$Explorer 13794.0 miles 39303$Maxima 25214.0 miles 25885$Camry 68292.0 miles 34483$Yukon 24783.0 miles 34763$G35 7559.0 miles 54959$
Corvette 20481.0 miles 48569$Explorer 69769.0 miles 36950$Maxima 27533.0 miles 27564$Camry 42891.0 miles 43319$Yukon 47696.0 miles 50012$G35 69332.0 miles 47009$
Corvette 75060.0 miles 35039$Explorer 47912.0 miles 45710$Maxima 79126.0 miles 43616$Camry 78170.0 miles 24408$Yukon 22920.0 miles 51787$G35 62723.0 miles 44503$
Corvette 29238.0 miles 44095$Explorer 60756.0 miles 29299$Maxima 21586.0 miles 36190$Camry 33567.0 miles 49606$Yukon 5257.0 miles 45913$G35 72921.0 miles 51290$
Corvette 37113.0 miles 47056$Explorer 75142.0 miles 20155$Maxima 33960.0 miles 43923$Camry 74023.0 miles 40037$Yukon 56616.0 miles 24568$G35 5424.0 miles 45355$
Corvette 43421.0 miles 16465$Explorer 17202.0 miles 37892$Maxima 29819.0 miles 36970$Camry 22326.0 miles 15461$Yukon 74958.0 miles 43764$G35 69535.0 miles 54539$


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