@Override public void queueEvent(FacesEvent event) { if (event != null && event instanceof ActionEvent) { if (isImmediate()) { event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES); } else { event.setPhaseId(PhaseId.INVOKE_APPLICATION); } } super.queueEvent(event); }
@Override public void decode(FacesContext context, UIComponent component) { rendererParamsNotNull(context, component); if (!shouldDecode(component)) { return; } String clientId = component.getClientId(context); if (RenderKitUtils.isPartialOrBehaviorAction(context, clientId)) { UICommand command = (UICommand) component; ActionEvent event = new ActionEvent(command); event.setPhaseId(command.isImmediate() ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.INVOKE_APPLICATION); command.queueEvent(event); if (logger.isLoggable(Level.FINE)) { logger.fine("This commandScript resulted in form submission ActionEvent queued."); } } }
@Override public void decode(FacesContext context, UIComponent component) { rendererParamsNotNull(context, component); if (!shouldDecode(component)) { return; } String clientId = component.getClientId(context); if (RenderKitUtils.isPartialOrBehaviorAction(context, clientId)) { UICommand command = (UICommand) component; ActionEvent event = new ActionEvent(command); event.setPhaseId(command.isImmediate() ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.INVOKE_APPLICATION); command.queueEvent(event); if (logger.isLoggable(Level.FINE)) { logger.fine("This commandScript resulted in form submission ActionEvent queued."); } } }
@Override public void decode(FacesContext context, UIComponent component) { rendererParamsNotNull(context, component); if (!shouldDecode(component)) { return; } String clientId = component.getClientId(context); if (RenderKitUtils.isPartialOrBehaviorAction(context, clientId)) { UICommand command = (UICommand) component; ActionEvent event = new ActionEvent(command); event.setPhaseId(command.isImmediate() ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.INVOKE_APPLICATION); command.queueEvent(event); if (logger.isLoggable(Level.FINE)) { logger.fine("This commandScript resulted in form submission ActionEvent queued."); } } }
public void queueEvent(FacesEvent event) { if (event instanceof ActionEvent) { if (isImmediate()) { event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES); } else { event.setPhaseId(PhaseId.INVOKE_APPLICATION); } final FacesContext facesContext = getFacesContext(); UICommandUtil.setSubmittedCommand(facesContext, this); } super.queueEvent(event); }
public boolean isImmediate() { RequestContext context = RequestContextHolder.getRequestContext(); if (context != null && getActionExpression().isLiteralText() && context.getCurrentState() instanceof TransitionableState) { TransitionDefinition transition = context .getMatchingTransition(getActionExpression().getExpressionString()); if (transition != null && transition.getAttributes().contains("bind")) { return Boolean.FALSE.equals(transition.getAttributes().getBoolean("bind")); } } return super.isImmediate(); }
if (component instanceof UICommand && ((UICommand) component).isImmediate()) { return new ImmediateEntry(component.getClientId());
if (link != null && link.isImmediate())