Class PrimeFacesContext

java.lang.Object
javax.faces.context.FacesContext
javax.faces.context.FacesContextWrapper
org.primefaces.context.PrimeFacesContext
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.context.FacesContext>

public class PrimeFacesContext extends javax.faces.context.FacesContextWrapper
Custom FacesContextWrapper to init and release our PrimeRequestContext.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrimeFacesContext(javax.faces.context.FacesContext wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMessage(String clientId, javax.faces.application.FacesMessage message)
     
    static CspState
    getCspState(javax.faces.context.FacesContext context)
     
    javax.faces.context.ExternalContext
     
    void
     
    void
    setResponseWriter(javax.faces.context.ResponseWriter writer)
     

    Methods inherited from class javax.faces.context.FacesContextWrapper

    getApplication, getAttributes, getClientIdsWithMessages, getCurrentPhaseId, getELContext, getExceptionHandler, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getNamingContainerSeparatorChar, getPartialViewContext, getRenderKit, getRenderResponse, getResourceLibraryContracts, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, getWrapped, isPostback, isProcessingEvents, isProjectStage, isReleased, isValidationFailed, renderResponse, responseComplete, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, setResponseStream, setViewRoot, validationFailed

    Methods inherited from class javax.faces.context.FacesContext

    getCurrentInstance, setCurrentInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PrimeFacesContext

      public PrimeFacesContext(javax.faces.context.FacesContext wrapped)
  • Method Details

    • getExternalContext

      public javax.faces.context.ExternalContext getExternalContext()
      Overrides:
      getExternalContext in class javax.faces.context.FacesContextWrapper
    • setResponseWriter

      public void setResponseWriter(javax.faces.context.ResponseWriter writer)
      Overrides:
      setResponseWriter in class javax.faces.context.FacesContextWrapper
    • release

      public void release()
      Overrides:
      release in class javax.faces.context.FacesContextWrapper
    • addMessage

      public void addMessage(String clientId, javax.faces.application.FacesMessage message)
      Overrides:
      addMessage in class javax.faces.context.FacesContextWrapper
    • getCspState

      public static CspState getCspState(javax.faces.context.FacesContext context)