Controlling the Execution of Executables
Refreshing an invoke action binding invokes the action.
Determining When to Refresh
You can use the Refresh property on iterator bindings and invoke action executables in your page definition file to control when each is evaluated during the ADF page life cycle. The valid values for the Refresh property are:
deferred (the default): Enforces execution whenever it is demanded for the first time, such as when a binding value is referenced in an EL expression. When it is called, it does not reexecute unless the binding itself or any parameter values for the binding have changed.
prepareModel: Refreshes during the Prepare Model phase
renderModel: Refreshes during the Prepare Render phase Note: The key distinction between the Prepare Model phase and the Prepare Render phase is that one comes before JSF’s Invoke Application phase, and the other after it. Because action listeners fire in JSF’s Invoke Application phase, if you need your iterator to refresh after these action listeners have performed their processing, you may want to set the Refresh property to renderModel.
ifNeeded: Refreshes the iterator only if it has not been refreshed, based on the refresh condition or if no condition is specified, during the Prepare Model phase
prepareModelIfNeeded: Same as ifNeeded, during the Prepare Model phase