Using a custom af:query operation listener to clear both the query criteria and results

In the Using a custom af:query listener to allow execution of a custom application module operation recipe in this chapter, we demonstrated how to create your own custom query listener in order to handle the af:query component's search functionality yourself. In this recipe, we will show how to provide a custom reset operation functionality for the af:query component.

The default reset functionality implemented by the ADF framework resets the af:query component by clearing the criteria values, but does not clear the results of the associated af:table component that the framework creates when we drop some named criteria on the page. This reset functionality ...

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.