Refreshing an ADF region
While displaying a task flow using a region, the framework generates a separate view port for the region and tracks all the user actions inside the region separately from the parent page. All regions are initially refreshed during the first display of the containing page. What if you want to refresh the task flow bindings in response to some user actions outside of the region?
The ADF binding layer provides both declarative and programmatic solutions for such use cases. The following are the details:
Refreshing the task flow conditionally: To refresh (restart) a task flow based on business conditions, you can specify
RefreshCondition = #{EL expression}
for the taskFlow executable binding. When you setRefreshCondition
, the corresponding region will be refreshed (the task flow will be restarted) whenever an EL expression evaluates to true during the page lifecycle.Note
RefreshCondition
should only evaluate to true when you want the task flow to refresh or restart...