Using an af:query component to construct a search page
The af:query
(or query search form) ADF Faces user interface component allows for the creation of search forms in your ADF Fusion web application. It is a model-driven component, which means that it relies on the model definition of named view criteria. This implies that changes made to the view criteria are automatically reflected by the af:query
component without any additional work. This fact, along with the JDeveloper's declarative support for displaying query results in a table (or tree table) component, makes constructing a search form a straightforward task.
In this recipe, we will cover the creation of a query search form and the display of search results in a table component.
Getting ready
You will need to create a skeleton Fusion Web Application (ADF) workspace before you proceed with this recipe. We will be using the MainApplication
workspace that was developed in the Breaking up the application in multiple workspace, Chapter...