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 72891.0 miles 31629$Explorer 36024.0 miles 54613$Maxima 79041.0 miles 19555$Camry 22470.0 miles 46970$Yukon 27391.0 miles 27716$G35 36201.0 miles 39416$
Corvette 51117.0 miles 35529$Explorer 12297.0 miles 48403$Maxima 50300.0 miles 47219$Camry 38344.0 miles 50549$Yukon 44455.0 miles 22090$G35 59674.0 miles 24841$
Corvette 28066.0 miles 20415$Explorer 6492.0 miles 35747$Maxima 76911.0 miles 50880$Camry 72695.0 miles 36925$Yukon 51823.0 miles 36734$G35 76212.0 miles 49689$
Corvette 17011.0 miles 23021$Explorer 9831.0 miles 30611$Maxima 58706.0 miles 36677$Camry 12748.0 miles 17453$Yukon 24401.0 miles 30404$G35 33178.0 miles 32784$
Corvette 32473.0 miles 38868$Explorer 28744.0 miles 48583$Maxima 79806.0 miles 49222$Camry 6582.0 miles 46656$Yukon 72897.0 miles 15021$G35 16815.0 miles 37482$
Corvette 15849.0 miles 51138$Explorer 56716.0 miles 27003$Maxima 31567.0 miles 24042$Camry 77339.0 miles 30212$Yukon 63679.0 miles 36185$G35 16334.0 miles 36266$
Corvette 21952.0 miles 53811$Explorer 44110.0 miles 31963$Maxima 7357.0 miles 29321$Camry 37884.0 miles 34252$Yukon 67179.0 miles 30187$G35 78004.0 miles 47168$
Corvette 79906.0 miles 20644$Explorer 25965.0 miles 48018$Maxima 63850.0 miles 32381$Camry 54788.0 miles 20260$Yukon 76136.0 miles 39913$G35 8247.0 miles 25527$
Corvette 74802.0 miles 42979$Explorer 34496.0 miles 39242$Maxima 16299.0 miles 17329$Camry 41085.0 miles 31896$Yukon 66308.0 miles 42197$G35 74216.0 miles 39375$


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