Step-1: go to faces-config.xml
Step-2: Search Page: Add search.jspx and create the page where you have an input box and a command button
Step-3: LOV Dialog Page: Add lov.jspx and create a page
a. drag and drop the view from datacontrol palette to add an ADF table .
a. drag and drop the view from datacontrol palette to add an ADF table .
b. through the table facets->selection of af:table in the structure pane, add the af:tableSelectMany .
c. through the table facets->action of af:table in the structure pane, add a command button for the table .
Step-4: Using the ADF Dialog Framework: Inside the faces-config, add a jsf navigation case from the search page to the dialog, when the action is dialog:lov
Step-5: Inside the search.jspx, add
a. partialTriggers="commandButton1" property for the input text box (InputText1)
b. action="dialog:lov", partialSubmit="true", returnListener="#{backing_search.returned}", useWindow="true" properties for the commandButton (commandButton1)
a. partialTriggers="commandButton1" property for the input text box (InputText1)
b. action="dialog:lov", partialSubmit="true", returnListener="#{backing_search.returned}", useWindow="true" properties for the commandButton (commandButton1)
Step-6: Inside the backing bean search.java, add the following code to enter the returned value into the text box:
Step-7: Inside the lov.java (backing bean), enter the following code for the submit_action method
This code will require some missing imports to be added so it works correctly.
Step-8: Inside the lov.jspx, for the commandButton, add the action property