af:table with List and af:quickQuery

 

Jdev : 11.1.2.2.0

af:quickQuery component can be used without a model and can be used to perform search operations on af:table component. All we have to do is add a queryListener in the view bean to handle the processQuery and delegate the search to the model bean.  The default behavior of the quick Component doesn’t always meet the requirement and we need to customize it. see the image below -

Following example would use a input box alone to search the table.

pojo_quick_query

 

The data in the table are coming from the model bean and a column is made sortable by setting the sortProperty attribute  of the af:column component.

The code of the sample can be found here

Comments

Post a Comment

Popular posts from this blog

Palindrome program in Java using BufferedReader

OOPS: Decomposition and Abstraction