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 5642.0 miles 19125$Explorer 54682.0 miles 53404$Maxima 8666.0 miles 35746$Camry 45857.0 miles 15378$Yukon 76218.0 miles 24345$G35 36892.0 miles 24162$
Corvette 73247.0 miles 33276$Explorer 26864.0 miles 22517$Maxima 68967.0 miles 35406$Camry 54483.0 miles 25991$Yukon 41658.0 miles 54371$G35 38694.0 miles 16480$
Corvette 34626.0 miles 32398$Explorer 16602.0 miles 33911$Maxima 69697.0 miles 32108$Camry 65577.0 miles 15358$Yukon 21715.0 miles 20797$G35 46837.0 miles 24140$
Corvette 76684.0 miles 28603$Explorer 34589.0 miles 27921$Maxima 22484.0 miles 34627$Camry 8094.0 miles 25832$Yukon 42570.0 miles 22099$G35 38627.0 miles 44341$
Corvette 26672.0 miles 41576$Explorer 49669.0 miles 42905$Maxima 45775.0 miles 49851$Camry 59217.0 miles 36440$Yukon 72494.0 miles 43036$G35 29246.0 miles 46603$
Corvette 33584.0 miles 30357$Explorer 49119.0 miles 23278$Maxima 53225.0 miles 28819$Camry 76861.0 miles 49920$Yukon 32174.0 miles 34238$G35 59200.0 miles 51277$
Corvette 69245.0 miles 22778$Explorer 38726.0 miles 33095$Maxima 41723.0 miles 54945$Camry 31652.0 miles 31283$Yukon 32560.0 miles 46543$G35 21607.0 miles 39716$
Corvette 63985.0 miles 20256$Explorer 61174.0 miles 54239$Maxima 25441.0 miles 26257$Camry 53130.0 miles 47050$Yukon 76940.0 miles 54426$G35 23089.0 miles 52829$
Corvette 57956.0 miles 47843$Explorer 69659.0 miles 33028$Maxima 21524.0 miles 17006$Camry 12755.0 miles 40354$Yukon 77744.0 miles 26549$G35 18551.0 miles 32936$

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