Some times we need to refrsh whole page in Oracle ADF, then we can use this managed bean code to refresh whole page in ADF.
Partially refresh any UIComponent-
- protected void refreshPage() {
- FacesContext fctx = FacesContext.getCurrentInstance();
- ViewHandler ViewH = fctx.getApplication().getViewHandler();
- UIViewRoot UIV = ViewH.createView(fctx, refreshpage);
- UIV.setViewId(refreshpage);
- fctx.setViewRoot(UIV);
- }
Partially refresh any UIComponent-
- AdfFacesContext.getCurrentInstance().addPartialTarget(UIComponent);