// taken fro forId attribute
UIToggleControl control = (UIToggleControl)component;
UITogglePanel panel = control.getPanel();
new SwitchablePanelSwitchEvent(panel, null, control).queue();
// ToggleEvent event = new ToggleEvent(panel, control.getSwitchToState());
// if (control.isImmediate()) {
// event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
// } else {