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 70682.0 miles 28404$Explorer 58734.0 miles 32536$Maxima 76294.0 miles 30616$Camry 18266.0 miles 36384$Yukon 68657.0 miles 33009$G35 63581.0 miles 46691$
Corvette 77365.0 miles 31099$Explorer 7019.0 miles 30601$Maxima 66024.0 miles 44586$Camry 47232.0 miles 35252$Yukon 27263.0 miles 38392$G35 8741.0 miles 53173$
Corvette 24624.0 miles 34824$Explorer 78456.0 miles 49401$Maxima 55945.0 miles 53949$Camry 51265.0 miles 46034$Yukon 71375.0 miles 39492$G35 22689.0 miles 25773$
Corvette 53575.0 miles 46079$Explorer 68949.0 miles 38134$Maxima 43175.0 miles 50428$Camry 55285.0 miles 43625$Yukon 35339.0 miles 22054$G35 19144.0 miles 50132$
Corvette 70568.0 miles 42373$Explorer 69862.0 miles 15769$Maxima 78640.0 miles 42019$Camry 22267.0 miles 33932$Yukon 8972.0 miles 27006$G35 79385.0 miles 50393$
Corvette 56759.0 miles 44896$Explorer 52778.0 miles 17351$Maxima 79566.0 miles 47169$Camry 22422.0 miles 44717$Yukon 22028.0 miles 44752$G35 28807.0 miles 22741$
Corvette 66594.0 miles 45638$Explorer 60539.0 miles 26396$Maxima 30272.0 miles 22491$Camry 35106.0 miles 50714$Yukon 40856.0 miles 53650$G35 57950.0 miles 33310$
Corvette 12877.0 miles 47847$Explorer 38348.0 miles 26062$Maxima 47871.0 miles 23496$Camry 38950.0 miles 49900$Yukon 58026.0 miles 39367$G35 53487.0 miles 40983$
Corvette 21636.0 miles 39765$Explorer 50051.0 miles 47941$Maxima 24801.0 miles 39865$Camry 10123.0 miles 25409$Yukon 34136.0 miles 45422$G35 51169.0 miles 19307$

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