Refresh Page From Backing Bean in Oracle ADF
0
Refresh Full Page:
Partial Refresh with UIComponent:
UIComponent may be .... :ptl:pgrl2 based on your jspx.
- protected void refreshPage() {
- FacesContext fctx = FacesContext.getCurrentInstance();
- String refreshpage = fctx.getViewRoot().getViewId();
- ViewHandler ViewH = fctx.getApplication().getViewHandler();
- UIViewRoot UIV = ViewH.createView(fctx, refreshpage);
- UIV.setViewId(refreshpage);
- fctx.setViewRoot(UIV);
- }
Partial Refresh with UIComponent:
UIComponent may be .... :ptl:pgrl2 based on your jspx.
- AdfFacesContext.getCurrentInstance().addPartialTarget
(UIComponent);