Refine search
private static FacesContext getWrappedFacesContextImpl(FacesContext facesContext) { if (facesContext == null || !(facesContext instanceof FacesContextWrapper)) { return facesContext; } FacesContextWrapper facesContextWrapper = (FacesContextWrapper) facesContext; FacesContext wrappedFacesContext = facesContextWrapper.getWrapped(); if (wrappedFacesContext == null || FacesContext.class.equals(wrappedFacesContext.getClass())) { return facesContext; } return getWrappedFacesContextImpl(wrappedFacesContext); }
@Override public void release() { PrimeRequestContext requestContext = PrimeRequestContext.getCurrentInstance(wrapped); if (requestContext != null) { requestContext.release(); } super.release(); } }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getApplication()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getApplication() */ @Override public Application getApplication() { return getWrapped().getApplication(); }
/** * Broadcasts the {@link org.apache.deltaspike.core.api.lifecycle.Destroyed} event * {@inheritDoc} */ @Override public void release() { // try/finally shouldn't be required... try { if (!this.wrappedFacesContext.getApplication().getResourceHandler() .isResourceRequest(this.wrappedFacesContext)) { broadcastDestroyedJsfRequestEvent(); } } finally { super.release(); } }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getViewRoot()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getViewRoot() */ @Override public UIViewRoot getViewRoot() { return getWrapped().getViewRoot(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getExternalContext()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getExternalContext() */ @Override public ExternalContext getExternalContext() { return getWrapped().getExternalContext(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getResponseWriter()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getResponseWriter() */ @Override public ResponseWriter getResponseWriter() { return getWrapped().getResponseWriter(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getELContext()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getELContext() */ @Override public ELContext getELContext() { return getWrapped().getELContext(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#addMessage(String, FacesMessage)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#addMessage(String, FacesMessage) */ @Override public void addMessage(String clientId, FacesMessage message) { getWrapped().addMessage(clientId, message); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getMessages(String)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getMessages(String) */ @Override public Iterator<FacesMessage> getMessages(String clientId) { return getWrapped().getMessages(clientId); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#getClientIdsWithMessages()} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#getClientIdsWithMessages() */ @Override public Iterator<String> getClientIdsWithMessages() { return getWrapped().getClientIdsWithMessages(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#renderResponse()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#renderResponse() */ @Override public void renderResponse() { getWrapped().renderResponse(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getMessageList(String)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getMessageList(String) */ @Override public List<FacesMessage> getMessageList(String clientId) { return getWrapped().getMessageList(clientId); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getResponseComplete()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getResponseComplete() */ @Override public boolean getResponseComplete() { return getWrapped().getResponseComplete(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#setResponseWriter(ResponseWriter)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#setResponseWriter(ResponseWriter) */ @Override public void setResponseWriter(ResponseWriter responseWriter) { getWrapped().setResponseWriter(responseWriter); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#release()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#release() */ @Override public void release() { getWrapped().release(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getPartialViewContext()} ()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getPartialViewContext() */ @Override public PartialViewContext getPartialViewContext() { return getWrapped().getPartialViewContext(); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.FacesContext#isProjectStage(javax.faces.application.ProjectStage)} * on the wrapped {@link FacesContext} object.</p> * * @see FacesContext#isProjectStage(javax.faces.application.ProjectStage) */ @Override public boolean isProjectStage(ProjectStage stage) { return getWrapped().isProjectStage(stage); } }
/** * <p>The default behavior of this method is to * call {@link FacesContext#getResponseStream()} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#getResponseStream() */ @Override public ResponseStream getResponseStream() { return getWrapped().getResponseStream(); }
/** * <p>The default behavior of this method is to * call {@link FacesContext#setResponseStream(ResponseStream)} * on the wrapped {@link FacesContext} object.</p> * * @see javax.faces.context.FacesContext#setResponseStream(ResponseStream) */ @Override public void setResponseStream(ResponseStream responseStream) { getWrapped().setResponseStream(responseStream); }