if (isSubmitted(facesContext, uiComponent)) {
uiComponent.queueEvent(new ValidationEvent(uiComponent));
uiComponent.queueEvent(new AjaxEvent(uiComponent));
// Check areas for processing
if (uiComponent instanceof AjaxComponent) {
AjaxComponent ajaxComponent = (AjaxComponent) uiComponent;
Set<String> toProcess = AjaxRendererUtils.asSet(ajaxComponent
.getProcess());
if (null != toProcess) {
Set<String> componentIdsToProcess = new LinkedHashSet<String>();
for (String componentId : toProcess) {
UIComponent component = getUtils().findComponentFor(uiComponent, componentId);