if (context.getCurrentPhaseId().equals(PhaseId.RENDER_RESPONSE)) { if (!externalContext.isResponseCommitted()) {
public ExceptionQueuedEventContext(FacesContext context, Throwable thrown, UIComponent component, PhaseId phaseId) { _context = context; _thrown = thrown; _component = component; _phase = (phaseId == null ? context.getCurrentPhaseId() : phaseId); }
/** * @since JSF 2.0 */ @Override public PhaseId getCurrentPhaseId() { return FacesContext.getCurrentInstance().getCurrentPhaseId(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getCurrentPhaseId()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getCurrentPhaseId() */ @Override public PhaseId getCurrentPhaseId() { return getWrapped().getCurrentPhaseId(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getCurrentPhaseId()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getCurrentPhaseId() */ @Override public PhaseId getCurrentPhaseId() { return getWrapped().getCurrentPhaseId(); }
@Override public PhaseId getCurrentPhaseId() { return getWrapped().getCurrentPhaseId(); }
public String getLabel() { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == PhaseId.PROCESS_VALIDATIONS) { return ComponentUtil.getComponentLabel(this); } else { return null; } } }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getCurrentPhaseId()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getCurrentPhaseId() */ @Override public PhaseId getCurrentPhaseId() { return getWrapped().getCurrentPhaseId(); }
/** * Returns the current phase ID. * @return The current phase ID. * @see FacesContext#getCurrentPhaseId() */ public static PhaseId getCurrentPhaseId() { return getContext().getCurrentPhaseId(); }
private boolean requiresRowIteration(VisitContext ctx) { try { // Use JSF 2.1 hints if available return !ctx.getHints().contains(VisitHint.SKIP_ITERATION); } catch (NoSuchFieldError e) { FacesContext fctx = FacesContext.getCurrentInstance(); return (!PhaseId.RESTORE_VIEW.equals(fctx.getCurrentPhaseId())); } }
public static void resetDataModelOncePerPhase(FacesContext context, UIComponent component) { String attributeName = getAttributeName(context, component); if (context.getCurrentPhaseId() != context.getAttributes().put(attributeName, context.getCurrentPhaseId())) { resetDataModel(context, component); } }
public boolean execute(FacesContext facesContext) { if (facesContext.getViewRoot() == null) { throw new ViewNotFoundException("A view is required to execute "+facesContext.getCurrentPhaseId()); } facesContext.getViewRoot().processUpdates(facesContext); return false; }
public boolean execute(FacesContext facesContext) { if (facesContext.getViewRoot() == null) { throw new ViewNotFoundException("A view is required to execute "+facesContext.getCurrentPhaseId()); } facesContext.getViewRoot().processValidators(facesContext); return false; }
@Override public String getLabel() { String label = super.getLabel(); if (label == null) { javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == javax.faces.event.PhaseId.PROCESS_VALIDATIONS) { label = com.liferay.faces.util.component.ComponentUtil.getComponentLabel(this); } } return label; }
@Override public String getLabel() { String label = super.getLabel(); if (label == null) { javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == javax.faces.event.PhaseId.PROCESS_VALIDATIONS) { label = com.liferay.faces.util.component.ComponentUtil.getComponentLabel(this); } } return label; }
@Override public String getLabel() { String label = super.getLabel(); if (label == null) { javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == javax.faces.event.PhaseId.PROCESS_VALIDATIONS) { label = com.liferay.faces.util.component.ComponentUtil.getComponentLabel(this); } } return label; }
@Override public String getLabel() { String label = super.getLabel(); if (label == null) { javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == javax.faces.event.PhaseId.PROCESS_VALIDATIONS) { label = com.liferay.faces.util.component.ComponentUtil.getComponentLabel(this); } } return label; }
public String getLabel() { String label = (String) getStateHelper().eval(InputRichTextPropertyKeys.label, null); if (label == null) { javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == javax.faces.event.PhaseId.PROCESS_VALIDATIONS) { label = com.liferay.faces.util.component.ComponentUtil.getComponentLabel(this); } } return label; }
public String getLabel() { String label = (String) getStateHelper().eval(CaptchaPropertyKeys.label, null); if (label == null) { javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == javax.faces.event.PhaseId.PROCESS_VALIDATIONS) { label = com.liferay.faces.util.component.ComponentUtil.getComponentLabel(this); } } return label; }
@Override public boolean visitTree(VisitContext context, VisitCallback callback) { // mustn't evaluate cases during Restore View if (context.getFacesContext().getCurrentPhaseId() != PhaseId.RESTORE_VIEW) { evaluate(); } return super.visitTree(context, callback); }