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 37087.0 miles 32279$Explorer 70468.0 miles 22565$Maxima 25855.0 miles 48509$Camry 36735.0 miles 54105$Yukon 60993.0 miles 50883$G35 46599.0 miles 29444$
Corvette 77109.0 miles 20598$Explorer 40328.0 miles 31671$Maxima 11932.0 miles 20229$Camry 14245.0 miles 36602$Yukon 10782.0 miles 33741$G35 77184.0 miles 53681$
Corvette 36934.0 miles 32908$Explorer 50488.0 miles 25347$Maxima 33240.0 miles 39081$Camry 74286.0 miles 50050$Yukon 47726.0 miles 28217$G35 49802.0 miles 54034$
Corvette 56655.0 miles 25504$Explorer 56753.0 miles 38018$Maxima 33800.0 miles 32709$Camry 61417.0 miles 47189$Yukon 79205.0 miles 17136$G35 63001.0 miles 21370$
Corvette 75161.0 miles 35390$Explorer 51500.0 miles 48668$Maxima 52662.0 miles 53711$Camry 37240.0 miles 16120$Yukon 68651.0 miles 31422$G35 57947.0 miles 38298$
Corvette 13989.0 miles 32491$Explorer 28357.0 miles 29728$Maxima 37861.0 miles 20540$Camry 64129.0 miles 25477$Yukon 27650.0 miles 46255$G35 38799.0 miles 32281$
Corvette 67733.0 miles 19311$Explorer 47576.0 miles 26787$Maxima 65211.0 miles 21940$Camry 23821.0 miles 33213$Yukon 42692.0 miles 29373$G35 45523.0 miles 36273$
Corvette 7731.0 miles 48129$Explorer 22560.0 miles 37068$Maxima 32817.0 miles 18106$Camry 7433.0 miles 41364$Yukon 55446.0 miles 22995$G35 44416.0 miles 21986$
Corvette 47940.0 miles 36347$Explorer 75897.0 miles 42241$Maxima 38791.0 miles 23971$Camry 10013.0 miles 33065$Yukon 33053.0 miles 24607$G35 60714.0 miles 30823$

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