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 65902.0 miles 22728$Explorer 8585.0 miles 15940$Maxima 45867.0 miles 45817$Camry 32897.0 miles 38632$Yukon 78178.0 miles 47987$G35 49830.0 miles 36585$
Corvette 54806.0 miles 47245$Explorer 49766.0 miles 23351$Maxima 78685.0 miles 41431$Camry 75839.0 miles 38456$Yukon 31360.0 miles 37038$G35 56849.0 miles 44046$
Corvette 10583.0 miles 37132$Explorer 68104.0 miles 27676$Maxima 74605.0 miles 15100$Camry 41250.0 miles 15056$Yukon 58801.0 miles 22951$G35 18605.0 miles 52950$
Corvette 40587.0 miles 19755$Explorer 49665.0 miles 35457$Maxima 20106.0 miles 29562$Camry 27904.0 miles 32436$Yukon 43497.0 miles 18569$G35 30484.0 miles 45580$
Corvette 28727.0 miles 50107$Explorer 25043.0 miles 21291$Maxima 76257.0 miles 30754$Camry 15875.0 miles 50990$Yukon 66980.0 miles 41271$G35 30440.0 miles 51082$
Corvette 28287.0 miles 28547$Explorer 55472.0 miles 23194$Maxima 60981.0 miles 42503$Camry 38031.0 miles 29578$Yukon 31911.0 miles 38764$G35 74684.0 miles 31127$
Corvette 43717.0 miles 20343$Explorer 37184.0 miles 23437$Maxima 78645.0 miles 24298$Camry 62509.0 miles 50268$Yukon 21900.0 miles 37090$G35 58560.0 miles 46161$
Corvette 66654.0 miles 51994$Explorer 72481.0 miles 42643$Maxima 61077.0 miles 21121$Camry 55173.0 miles 53336$Yukon 72322.0 miles 36558$G35 22472.0 miles 23981$
Corvette 51161.0 miles 30749$Explorer 53133.0 miles 23810$Maxima 7158.0 miles 34043$Camry 39683.0 miles 16891$Yukon 75450.0 miles 15439$G35 55446.0 miles 39438$

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