if (!externalContext.isResponseCommitted()) { externalContext.setResponseStatus(200);
if (externalContext.isResponseCommitted() && !context.getPartialViewContext().isAjaxRequest()) { PartialResponseWriter writer = context.getPartialViewContext().getPartialResponseWriter(); writer.startElement("script", null);
if (!externalContext.isResponseCommitted()) {
@Override public boolean isResponseCommitted() { return delegate.isResponseCommitted(); }
@Override public boolean isResponseCommitted() { return wrapped.isResponseCommitted(); }
/** * @see Faces#isResponseCommitted() */ public static boolean isResponseCommitted(FacesContext context) { return context.getExternalContext().isResponseCommitted(); }
/** * @see Faces#isResponseCommitted() */ public static boolean isResponseCommitted(FacesContext context) { return context.getExternalContext().isResponseCommitted(); }
/** * @since 2.0 */ public boolean isResponseCommitted() { ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get(); if (ctx == null) { throw new UnsupportedOperationException(); } return ctx.isResponseCommitted(); }
/** * <p class="changed_added_2_0">Check if the current response has been committed.</p> * * <p><em>Servlet:</em> This must be performed by calling the * <code>javax.servlet.http.HttpServletResponse</code> <code>isCommitted</code> * method.</p> * * <p>The default implementation throws * <code>UnsupportedOperationException</code> and is provided for * the sole purpose of not breaking existing applications that * extend this class.</p> * * @since 2.0 */ public boolean isResponseCommitted() { if (defaultExternalContext != null) { return defaultExternalContext.isResponseCommitted(); } throw new UnsupportedOperationException(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
@Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isResponseCommitted()} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isResponseCommitted() */ @Override public boolean isResponseCommitted() { return getWrapped().isResponseCommitted(); }
private boolean canRenderErrorPageView(FacesContext context, Throwable exception, String errorPageLocation) { setRequestAttribute(context, EXCEPTION_UUID, UUID.randomUUID().toString()); if (context.getCurrentPhaseId() != PhaseId.RENDER_RESPONSE) { logException(context, exception, errorPageLocation, LogReason.EXCEPTION_HANDLED); return true; } else if (!context.getExternalContext().isResponseCommitted()) { logException(context, exception, errorPageLocation, LogReason.RENDER_EXCEPTION_HANDLED); resetResponse(context); // If the exception was thrown in midst of rendering the JSF response, then reset (partial) response. return true; } else { logException(context, exception, errorPageLocation, LogReason.RENDER_EXCEPTION_UNHANDLED); // Mojarra doesn't close the partial response during render exception. Let do it ourselves. OmniPartialViewContext.getCurrentInstance(context).closePartialResponse(); return false; } }