Using a custom af:table selection listener

The selectionListener attribute of the ADF Table (af:table) component synchronizes the currently selected table row with the underlying ADF table binding iterator. By default, upon dropping a collection to a JSF page as an ADF table, JDeveloper sets the value of the selectionListener attribute of the corresponding af:table component to an expression similar to #{bindings.SomeCollection.collectionModel.makeCurrent}. This expression indicates that the makeCurrent method of the collection's model is called in order to synchronize the table selection with the table iterator binding.

In this recipe, we will cover how to implement your own custom table selection listener. This will come in handy if your application ...

Get Oracle JDeveloper 11gR2 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.