Follow by Email

Wednesday, 4 June 2014

ADF Basics : Implementing auto suggest behavior in ADF Faces lov (list of values)

Auto Suggest behavior is best understand by Google Instant, as in google when we type something and it starts showing suggestion instantly.

 This effect can be implemented in ADF using autoSuggestBehaviour
To use the auto-suggest functionality in a declarative way you need to define a model-driven list of values on your model project, which will be the base for the suggestedItems list. Select the Department Name attribute from the Department VO and create a List of Values. here i am using HR schema and predefined table Department to implement this

  • Create a Fusion Web Application
  • Now create EO and VO of Department table.(Business Components)

  • Now create List of values(LOVs)on DepartmentName

  • Create page in ViewController and drag the DepartmentName on page as ADF Lov ChoiceList or Lov Input

  • Now go to Component Palette and select Auto Suggest Behaviour and drop it inside DepartmentName Lov

  • Now select af:autoSuggestBehavior from Page structure and go to PropertyInspector and Open Expression Builder at SuggestedItems and select from bindings #{bindings.DepartmentName.suggestedItems} if you are using different tables and Lov select according to that

  • Now run your page and enjoy autosuggest behavior (ADF Instant) 
Cheers :-) Happy Learning


  1. i did as like this but am not getting anything under bindings in method expression builder

    1. Hi Latha

      When you drop an attribute as input lov then it's binding is created in page def and that binding appears in expression builder
      Which Jdev version you are using ?
      Go to binding section of page and check that input lov binding is created or not


    2. Thank You Ashish. I rectified the error. I am using this in ADF Table so instead of bindings i should choose row.bindings.

  2. Hello, i can't find suggestedItems behind labels node? can you help me?

    1. First drop autoSuggestBehavior tag in lov then check it in bindings and expand associated lov binding , there you will see suggestedItems

  3. Hello, no suggestedItems is there inside bindings. in Jdev version...please check and help.