ADF : Redirect to another View Programatically

You can use the below method to redirect to another view in ADF programatically.
    public static void redirectToView(String viewId) {
        FacesContext fCtx = FacesContext.getCurrentInstance();
        ExternalContext eCtx = fCtx.getExternalContext();

        String activityUrl = ControllerContext.getInstance().getGlobalViewActivityURL(viewId);
        try {
        } catch (IOException e) {
            JSFUtils.addFacesErrorMessage("Exception when redirect to " + viewId);


Popular posts from this blog

OAF : Get Current Row in Table

ADF : Get Current Logged User Name

ADF : Working with ViewCriteria