String newValue = (String) parameters.get(clientId + ACTIVE_INDEX_POSTFIX);
try {
int activeIndex = Integer.parseInt(newValue);
if (activeIndex != oldIndex) {
((UITabGroup) component).setActiveIndex(activeIndex);
TabChangeEvent event = new TabChangeEvent(component,
new Integer(oldIndex), new Integer(activeIndex));
event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
component.queueEvent(event);
}
} catch (NumberFormatException e) {
LOG.error("Can't parse activeIndex: '" + newValue + "'");