Using a custom af:query listener to allow execution of a custom application module operation

The queryListener attribute of the ADF Faces Query (af:query) component indicates a method that is invoked to execute the query. By default, the framework executes the processQuery() method referenced by the searchRegion binding associated with the af:query component. This is indicated by the following expression: #{bindings.SomeQuery.processQuery}. By creating a custom query listener method, you can provide a custom implementation each time a search is performed by the af:query component.

In this recipe, we will demonstrate how to create a custom query listener. Our custom query listener will programmatically execute the query by invoking the default expression ...

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.