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 29186.0 miles 34234$Explorer 48804.0 miles 16398$Maxima 78482.0 miles 24277$Camry 75090.0 miles 50883$Yukon 25834.0 miles 30311$G35 31990.0 miles 26303$
Corvette 36628.0 miles 29339$Explorer 18067.0 miles 21768$Maxima 59844.0 miles 37596$Camry 60414.0 miles 52200$Yukon 60417.0 miles 27316$G35 27957.0 miles 42651$
Corvette 51788.0 miles 23586$Explorer 34122.0 miles 27893$Maxima 7516.0 miles 28987$Camry 20982.0 miles 47258$Yukon 52820.0 miles 39353$G35 36032.0 miles 26703$
Corvette 65863.0 miles 24839$Explorer 6439.0 miles 37409$Maxima 24052.0 miles 26947$Camry 28503.0 miles 46457$Yukon 11513.0 miles 27910$G35 44688.0 miles 31556$
Corvette 54622.0 miles 43699$Explorer 41394.0 miles 41404$Maxima 26174.0 miles 26525$Camry 32787.0 miles 22093$Yukon 57359.0 miles 51499$G35 79795.0 miles 24862$
Corvette 23992.0 miles 28209$Explorer 71693.0 miles 15661$Maxima 51647.0 miles 28682$Camry 13979.0 miles 34685$Yukon 32802.0 miles 15188$G35 40346.0 miles 33338$
Corvette 36784.0 miles 54148$Explorer 75572.0 miles 25542$Maxima 67805.0 miles 42078$Camry 55565.0 miles 37642$Yukon 6132.0 miles 42764$G35 62668.0 miles 46566$
Corvette 56492.0 miles 23971$Explorer 34733.0 miles 40425$Maxima 12124.0 miles 29029$Camry 61728.0 miles 49973$Yukon 22457.0 miles 29512$G35 75373.0 miles 26625$
Corvette 16572.0 miles 29167$Explorer 19760.0 miles 34060$Maxima 62406.0 miles 31257$Camry 24446.0 miles 49885$Yukon 72452.0 miles 30317$G35 11358.0 miles 24789$

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