panel.setOpened(UISimpleTogglePanel2.COLLAPSED);
} else {
//xxxx by nick - denis - use constants, please!
panel.setOpened(UISimpleTogglePanel2.EXPANDED);
}
SimpleToggle2Event event = new SimpleToggle2Event(panel, (panel.isOpened()));
if (panel.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
event.queue();
} else {
if (panel.isOpened()!= new Boolean((String) clnId).booleanValue()){
SimpleToggle2Event event = new SimpleToggle2Event(panel, (panel.isOpened()));
if (panel.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
event.queue();
}
panel.setOpened(new Boolean((String) clnId).booleanValue());
}