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 ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.