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 63891.0 miles 51381$Explorer 25171.0 miles 48124$Maxima 68059.0 miles 50099$Camry 42420.0 miles 18650$Yukon 7255.0 miles 37393$G35 23888.0 miles 37713$
Corvette 24888.0 miles 17954$Explorer 65831.0 miles 32661$Maxima 7983.0 miles 15562$Camry 70047.0 miles 27857$Yukon 76580.0 miles 32949$G35 56653.0 miles 40690$
Corvette 69806.0 miles 23251$Explorer 64321.0 miles 36108$Maxima 11125.0 miles 50836$Camry 28372.0 miles 27968$Yukon 73636.0 miles 15161$G35 76325.0 miles 28179$
Corvette 61231.0 miles 42200$Explorer 41130.0 miles 21521$Maxima 13176.0 miles 41602$Camry 8227.0 miles 35057$Yukon 68600.0 miles 19746$G35 22821.0 miles 19984$
Corvette 50505.0 miles 44791$Explorer 73846.0 miles 29558$Maxima 70448.0 miles 28376$Camry 20222.0 miles 20247$Yukon 54466.0 miles 19666$G35 23708.0 miles 48735$
Corvette 32819.0 miles 25606$Explorer 55060.0 miles 33979$Maxima 26273.0 miles 34180$Camry 55244.0 miles 48230$Yukon 75645.0 miles 35790$G35 46951.0 miles 27438$
Corvette 29448.0 miles 26254$Explorer 72144.0 miles 35838$Maxima 24918.0 miles 26516$Camry 78460.0 miles 33434$Yukon 31518.0 miles 17959$G35 67810.0 miles 51544$
Corvette 33745.0 miles 37074$Explorer 39221.0 miles 46532$Maxima 13548.0 miles 43153$Camry 75349.0 miles 16378$Yukon 78037.0 miles 51414$G35 33095.0 miles 49561$
Corvette 5069.0 miles 49010$Explorer 5940.0 miles 23795$Maxima 72723.0 miles 16002$Camry 36909.0 miles 47701$Yukon 38349.0 miles 37496$G35 19531.0 miles 15406$

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