Wednesday, August 26, 2015

Refresh adf region without contextual event

The trick is region will refresh whenever its input parameter changes.

  • Go the page with the region which will be refreshed.
  • Go to binding tab and select the region from Executables
    • add an input parameter id=refreshInd value=#{pageFlowScope.dummyParam}
    • set Refresh=ifNeeded
So any point, you want the region to refresh, 

ADFUtils.getPageFlowScope().put("dummyParam", Long.toString(System.currentTimeMillis()));

Another trick is using current mill second as input value - that's guaranteed to have a new value for the input.

No comments:

Post a Comment