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 22792.0 miles 50101$Explorer 51754.0 miles 21209$Maxima 17414.0 miles 53077$Camry 79184.0 miles 54167$Yukon 33924.0 miles 34025$G35 72747.0 miles 26329$
Corvette 24624.0 miles 50575$Explorer 19283.0 miles 17213$Maxima 52573.0 miles 27231$Camry 71378.0 miles 19525$Yukon 20708.0 miles 27433$G35 9121.0 miles 20945$
Corvette 69504.0 miles 33791$Explorer 12055.0 miles 22352$Maxima 30959.0 miles 27388$Camry 75749.0 miles 48071$Yukon 25810.0 miles 42765$G35 23533.0 miles 22864$
Corvette 47349.0 miles 42581$Explorer 79427.0 miles 38672$Maxima 17701.0 miles 52028$Camry 63784.0 miles 48333$Yukon 5482.0 miles 24043$G35 41893.0 miles 20678$
Corvette 22807.0 miles 46884$Explorer 57178.0 miles 42534$Maxima 25763.0 miles 45568$Camry 62550.0 miles 16879$Yukon 73877.0 miles 28071$G35 66635.0 miles 22063$
Corvette 12688.0 miles 51167$Explorer 56043.0 miles 40527$Maxima 72096.0 miles 16963$Camry 69284.0 miles 29353$Yukon 60261.0 miles 27100$G35 16223.0 miles 17871$
Corvette 28613.0 miles 40107$Explorer 19925.0 miles 28995$Maxima 56626.0 miles 42343$Camry 41406.0 miles 27644$Yukon 20224.0 miles 39413$G35 59878.0 miles 33880$
Corvette 37661.0 miles 32812$Explorer 10676.0 miles 31960$Maxima 6890.0 miles 47815$Camry 23213.0 miles 51286$Yukon 70647.0 miles 42070$G35 67763.0 miles 41387$
Corvette 12365.0 miles 23315$Explorer 40356.0 miles 47004$Maxima 41111.0 miles 33524$Camry 26525.0 miles 51815$Yukon 40627.0 miles 30174$G35 32455.0 miles 37978$

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