Programmatically reloading an ADF page.
FacesContext fc = FacesContext.getCurrentInstance();
String viewId = fc.getViewRoot().getViewId();
String resourceUrl = fc.getApplication().getViewHandler().getActionURL(fc, viewId);
try {
ExternalContext ec= fc.getExternalContext();
ec.redirect(resourceUrl);
} catch (Exception e) {
e.printStackTrace();
}
No comments:
Post a Comment