You can use the Data Control Palette to insert a method as a button or link that the user clicks to initiate the action. Actions are defined by the business service's class methods and will appear in the Operations folders displayed in the Data Control Palette.
If the method accepts parameters, the actual value for parameters may be specified through the Property Inspector. The action binding editor does not support entering value for the method arguments.
To specify the parameters of an action binding for a method:
With the UI component displayed in the Visual Editor, choose View | Structure to open the Structure Window.
Click (UI Model) in the Structure Window toolbar and expand the node to display the list of bindings.
In the list of bindings, expand the action binding for the desired method.
Select param below the desired action binding and choose View | Property I nspector to open the Property Inspector.
In the Property Inspector, enter the value of the parameter.
When you want an existing ADF binding to provide the parameter
value, you can use the EL expression syntax to access the binding.
This is particularly useful when you want to obtain the parameter
values from user input provided by an input form. For example, an
input field for an OrderId might define a control binding that a
method accesses like this ${param.orderid}
.
Repeat for each parameter the method of the action binding defines.
For a detailed example that uses Struts, JSP, ADF Business Components, and Oracle ADF action bindings with a custom method, see the end-to-end topic Using a Custom Method to Set the Bind Parameters on a View Object.
Binding a Method with Parameters in a JClient Form
Copyright © 1997, 2004, Oracle. All rights reserved.