}
private final void dispatchBehaviorEvent(UIComponent component, AjaxBehavior ajaxBehavior)
{
AjaxBehaviorEvent event = new AjaxBehaviorEvent(component, ajaxBehavior);
boolean isImmediate = false;
if (ajaxBehavior.isImmediateSet())
{
isImmediate = ajaxBehavior.isImmediate();
}
else
{
isImmediate = isComponentImmediate(component);
}
PhaseId phaseId = isImmediate ?
PhaseId.APPLY_REQUEST_VALUES :
PhaseId.INVOKE_APPLICATION;
event.setPhaseId(phaseId);
component.queueEvent(event);
}