How to execute navigation in RegionNavigationEvent of af:region



    public void onDynamicReqionnavigation(RegionNavigationEvent regionNavigationEvent) {
        System.out.println("*******onDynamicReqionnavigation**********");
        try{
        if (regionNavigationEvent.getNewViewId() == null) {
                navigate("back");
        }
        }catch(Exception ex){
            ex.printStackTrace();
            JSFUtils.reportException(ex);
        }
    }

    public void navigate(String controlFlowCase){
           NavigationHandler nvHndlr  =
           FacesContext.getCurrentInstance().getApplication().getNavigationHandler();
           nvHndlr .handleNavigation(FacesContext.getCurrentInstance(), null,
           controlFlowCase);
       }

Comments

Popular posts from this blog

Another user has changed the row with primary key oracle.jbo.Key[12 ].

weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck

Working With File Throgh WebUtill