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

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.