MethodBinding binding = actionSource.getAction();
if(!(binding instanceof DialogMethodBinding)) {
actionSource.setAction(new DialogMethodBinding(binding, (ActionPrefixHolder)component));
}
DialogCloseEvent dialogEvent = new DialogCloseEvent(component);
if(!UIDialogAction.isServerMode(component)) {
super.doAjaxDecode(context, component);
} else {
Object type = component.getAttributes().get("type");
if (null == type || ! "reset".equalsIgnoreCase((String)type) ) {
ActionEvent event;
event = new ActionEvent(component);
component.queueEvent(event);
//no ajax event
}
}
dialogEvent.queue();
}