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 67733.0 miles 37622$Explorer 33849.0 miles 21603$Maxima 74329.0 miles 26857$Camry 38277.0 miles 25216$Yukon 52220.0 miles 47096$G35 75591.0 miles 36288$
Corvette 51670.0 miles 15479$Explorer 17211.0 miles 38066$Maxima 24241.0 miles 21824$Camry 57045.0 miles 33018$Yukon 5145.0 miles 16122$G35 55583.0 miles 53335$
Corvette 10202.0 miles 35491$Explorer 58836.0 miles 36816$Maxima 79497.0 miles 38432$Camry 21432.0 miles 50981$Yukon 57804.0 miles 34506$G35 18361.0 miles 39399$
Corvette 73841.0 miles 49009$Explorer 61042.0 miles 34751$Maxima 68695.0 miles 54485$Camry 5650.0 miles 36472$Yukon 72236.0 miles 27306$G35 77703.0 miles 53819$
Corvette 77548.0 miles 54774$Explorer 61844.0 miles 23448$Maxima 53108.0 miles 33898$Camry 32028.0 miles 17174$Yukon 68452.0 miles 54162$G35 63017.0 miles 31624$
Corvette 63631.0 miles 41248$Explorer 38212.0 miles 21209$Maxima 35637.0 miles 37003$Camry 44955.0 miles 49338$Yukon 16556.0 miles 19695$G35 76029.0 miles 53735$
Corvette 7050.0 miles 34731$Explorer 48756.0 miles 34065$Maxima 44058.0 miles 48464$Camry 58078.0 miles 18722$Yukon 16287.0 miles 45182$G35 69018.0 miles 21218$
Corvette 46154.0 miles 37145$Explorer 48186.0 miles 48818$Maxima 11702.0 miles 41124$Camry 78413.0 miles 20379$Yukon 57335.0 miles 45062$G35 74906.0 miles 44195$
Corvette 9195.0 miles 41989$Explorer 39214.0 miles 51014$Maxima 25792.0 miles 39107$Camry 36979.0 miles 24252$Yukon 73628.0 miles 33506$G35 47235.0 miles 49839$

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