employee.
4) Click on the tab to return to EmpSearch page. In the strcture window expand the
f:view node.
5) Right click on the h:form node and select Insert inside h:formADF Faces Core.
6) Select Panel page option from the Insert ADF faces Core item window.
7) Change the title of the window to Employee Search.
8) From the data control palette, select the EmpDeptViewObj view object and drop it
on the af:panelPage node. From the context menu, select FormsADF Search
Form.
9) From the data control palette, select the EmpDeptViewObj view object and drop it
on the af:panelPage node. From the context menu, select TableADF Read
Only table.
In ADF we can set a view object to be in Find mode, which means any values
entered in the fields to which this view object is bound, will return the results
based on the given field values.
To achieve this, Right-click the executables node, and from the context menu,
select Insert inside executables > invokeAction.
13) Set the ID property to ForceFindModeAlways and the Binds property to the Find
action.
14) Click the Advanced tab, and set the RefreshCondition to the expression:
#{bindings.EmpDeptViewObjIterator.findMode == false}
15) Move the ForceFindModeAlways action to be first in the list of executables. This
insures the page is invoked in 'Find' mode.
16) Now we will create one more Iterator which is bind to the result table on the
search page.
17) Right-click the executables node, and from the context menu, select Insert inside
executables > Iterator.
18) Set the Iterator ID to EmpDeptTableIterator.
19) When we initially dropped the EmpDeptViewObj to the page and created the ADF
read only table, it was automatically bound to the EmpDeptViewObjIterator. Now
this Iterator is the one we have forced to stay in find mode. So we need to change
the iterator to which the results table is bound to use the new Iterator
EmpDeptTableIterator.
Click on the EmpSearch,jspx page and In the Structure pane, select the af:table and right-
click Edit Binding.In the Table Binding Editor, use the Select an Iterator drop-down list at
the bottom of the pane to select EmpDeptTableIterator
20) Shuttle all the attributes into the Display Attributes list.
21) Since we are using invokeAction above to force the EmpDeptViewObjIterator to
always be in find mode, we dont need the Find button, which by default would
toggle the form in and out of find mode.
In the Structure pane, expand the panelForm > PanelForm facets > footer
>af:panelGroup > af:panelButtonBar nodes and delete the Find button from the
af:panelForm.