UIComponent source = event.getComponent();
ActionSource2 actionSource = (ActionSource2) source;
Application application = facesContext.getApplication();
MethodExpression expression = actionSource.getActionExpression();
// Retrieve the NavigationHandler instance..
NavigationHandler navHandler = application.getNavigationHandler();
// Invoke nav handling..
String navBinding = (null != expression) ? expression.getExpressionString() : null;
navHandler.handleNavigation(facesContext, navBinding, errorOutcome);
// Trigger a switch to Render Response if needed
facesContext.renderResponse();
}
}