This technique is simple and works across region boundaries instead of using contextual events. Contextual events are Oracles' recommended practice for inter-region communication but I have found them to carry a performance penalty, at least at the time of this writing and they are more difficult to configure.
When you have a table somewhere on your page (any region) that needs refreshing, perform the following steps
- In a backing bean method, set a Boolean.TRUE into a requestScope variable. (see code in red below).
This can be done from the backing bean of any region (task flow) running on the page.
- In the executable bindings for your table, add a invokeAction executable (named refreshIfNeeded) and bind it to the Execute or ExecuteWithParams action binding for your table’s view (on the left hand side).
- Set the refreshIfNeeded binding to refresh “Always”
- Add a refresh condition expression that references your request scope variable.
In your backing bean you could retrieve the "Execute" Action from the bindings and executed it yourself but that only works if your backing bean is in the same region as the table you want to refresh. Also, this technique assures the query is only executed once during the ADF lifecycle. If the variable is set on requestScope more than once by different regions, no harm done.