FacesUtils.invokeMethodBinding(getFacesContext(), getActionListener(), facesEvent);
if (!isSwitchTypeClient()) {
ActionListener defaultActionListener = getFacesContext().getApplication().getActionListener();
if (defaultActionListener != null) {
defaultActionListener.processAction((ActionEvent) facesEvent);
}
}
Integer index = ((TabChangeEvent) facesEvent).getNewTabIndex();
if (FacesUtils.hasValueBindingOrValueExpression(this, Attributes.SELECTED_INDEX)) {
FacesUtils.setValueOfBindingOrExpression(getFacesContext(), index, this, Attributes.SELECTED_INDEX);