ComponentUtil.setStringProperty(component, ATTR_SWITCH_TYPE, switchType);
ComponentUtil.setBooleanProperty(component, ATTR_IMMEDIATE, immediate);
ComponentUtil.setBooleanProperty(component, ATTR_SHOW_NAVIGATION_BAR, showNavigationBar);
if (tabChangeListener != null && component instanceof UITabGroup && isValueReference(tabChangeListener)) {
final Application application = FacesContext.getCurrentInstance().getApplication();
final javax.faces.el.MethodBinding methodBinding = application.createMethodBinding(tabChangeListener,
new Class[] {org.apache.myfaces.tobago.event.TabChangeEvent.class});
((UITabGroup) component).setTabChangeListener(methodBinding);
}
}