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 21514.0 miles 28490$Explorer 68103.0 miles 32483$Maxima 43602.0 miles 29709$Camry 38855.0 miles 21375$Yukon 32099.0 miles 30945$G35 5670.0 miles 38710$
Corvette 28635.0 miles 19294$Explorer 45802.0 miles 25768$Maxima 55403.0 miles 54513$Camry 57494.0 miles 32530$Yukon 10170.0 miles 17908$G35 19423.0 miles 32306$
Corvette 66924.0 miles 34370$Explorer 44045.0 miles 52089$Maxima 43812.0 miles 53058$Camry 32099.0 miles 21399$Yukon 11335.0 miles 44616$G35 58648.0 miles 21704$
Corvette 16513.0 miles 36547$Explorer 40024.0 miles 30143$Maxima 52609.0 miles 20983$Camry 35063.0 miles 38927$Yukon 58517.0 miles 53194$G35 70230.0 miles 51542$
Corvette 13224.0 miles 43397$Explorer 12771.0 miles 33492$Maxima 33895.0 miles 37518$Camry 69668.0 miles 54449$Yukon 61718.0 miles 38801$G35 45927.0 miles 27499$
Corvette 31190.0 miles 16416$Explorer 53262.0 miles 48305$Maxima 9422.0 miles 26488$Camry 58290.0 miles 36129$Yukon 7909.0 miles 24495$G35 15865.0 miles 29499$
Corvette 46088.0 miles 51648$Explorer 23580.0 miles 18575$Maxima 72111.0 miles 34688$Camry 7377.0 miles 24916$Yukon 39664.0 miles 21126$G35 14189.0 miles 33409$
Corvette 54972.0 miles 36010$Explorer 62437.0 miles 37110$Maxima 54214.0 miles 38125$Camry 33243.0 miles 45127$Yukon 19544.0 miles 17713$G35 10759.0 miles 23227$
Corvette 70133.0 miles 20617$Explorer 42604.0 miles 38757$Maxima 24697.0 miles 49963$Camry 13948.0 miles 54883$Yukon 22082.0 miles 26158$G35 64436.0 miles 37747$

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