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 18968.0 miles 28111$Explorer 37559.0 miles 54625$Maxima 49264.0 miles 20887$Camry 61426.0 miles 42712$Yukon 48804.0 miles 43812$G35 57081.0 miles 39821$
Corvette 11961.0 miles 49391$Explorer 35423.0 miles 52056$Maxima 21639.0 miles 25805$Camry 60070.0 miles 49144$Yukon 27259.0 miles 20724$G35 53309.0 miles 31014$
Corvette 19726.0 miles 19687$Explorer 28575.0 miles 49926$Maxima 55291.0 miles 36449$Camry 29165.0 miles 21612$Yukon 64346.0 miles 15295$G35 20166.0 miles 30911$
Corvette 25342.0 miles 53957$Explorer 52398.0 miles 26445$Maxima 13149.0 miles 19141$Camry 76546.0 miles 40514$Yukon 77275.0 miles 15461$G35 23859.0 miles 47210$
Corvette 9580.0 miles 32670$Explorer 39884.0 miles 30395$Maxima 51808.0 miles 39023$Camry 69436.0 miles 46775$Yukon 49669.0 miles 52262$G35 28219.0 miles 27623$
Corvette 48353.0 miles 47768$Explorer 72693.0 miles 47826$Maxima 11441.0 miles 26440$Camry 35073.0 miles 35490$Yukon 41221.0 miles 25774$G35 13848.0 miles 26748$
Corvette 72514.0 miles 46012$Explorer 49298.0 miles 31331$Maxima 76694.0 miles 34533$Camry 27704.0 miles 42488$Yukon 12340.0 miles 23113$G35 11030.0 miles 39011$
Corvette 46203.0 miles 42024$Explorer 44172.0 miles 18425$Maxima 20066.0 miles 17919$Camry 60970.0 miles 31593$Yukon 68460.0 miles 42202$G35 16034.0 miles 24381$
Corvette 28641.0 miles 53135$Explorer 27703.0 miles 33389$Maxima 27277.0 miles 43453$Camry 72340.0 miles 52325$Yukon 48010.0 miles 38484$G35 26539.0 miles 30315$

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