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