Class FacesContextWrapper
- java.lang.Object
- 
- jakarta.faces.context.FacesContext
- 
- jakarta.faces.context.FacesContextWrapper
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<FacesContext>
 
 public abstract class FacesContextWrapper extends FacesContext implements FacesWrapper<FacesContext> - Since:
- 2.0
 
- 
- 
Constructor SummaryConstructors Constructor Description FacesContextWrapper()Deprecated.FacesContextWrapper(FacesContext delegate)
 - 
Method Summary- 
Methods inherited from class jakarta.faces.context.FacesContextgetCurrentInstance, setCurrentInstance
 
- 
 
- 
- 
- 
Constructor Detail- 
FacesContextWrapper@Deprecated public FacesContextWrapper() Deprecated.
 - 
FacesContextWrapperpublic FacesContextWrapper(FacesContext delegate) 
 
- 
 - 
Method Detail- 
addMessagepublic void addMessage(String clientId, FacesMessage message) - Specified by:
- addMessagein class- FacesContext
 
 - 
getApplicationpublic Application getApplication() - Specified by:
- getApplicationin class- FacesContext
 
 - 
getAttributespublic Map<Object,Object> getAttributes() - Overrides:
- getAttributesin class- FacesContext
- Returns:
 
 - 
getClientIdsWithMessagespublic Iterator<String> getClientIdsWithMessages() - Specified by:
- getClientIdsWithMessagesin class- FacesContext
 
 - 
getCurrentPhaseIdpublic PhaseId getCurrentPhaseId() - Overrides:
- getCurrentPhaseIdin class- FacesContext
- Returns:
 
 - 
getELContextpublic jakarta.el.ELContext getELContext() Description copied from class:FacesContextReturn the context within which all EL-expressions are evaluated.A Faces implementation is expected to provide a full implementation of this class. However Faces also explicitly allows user code to apply the "decorator" pattern to this type, by overriding the FacesContextFactory class. In that pattern, the decorating class has a reference to an "underlying" implementation and forward calls to it, possibly after taking other related actions. The decorator pattern does have difficulties with backwards-compatibility when new methods are added to the class being decorated, as with this method which was added in Faces1.2. Decorator classes that were written for Faces1.1 will subclass this class, but will not override this method to pass the call on to the "underlying" instance. This base implementation therefore must do that for it. Unfortunately the Faces designers stuffed up the design; this base class has no way of knowing what the "underlying" instance is! The current implementation here is therefore to delegate directly to the very first FacesContext instance registered within this request (via setCurrentInstance). This instance should be the "full" implementation provided by the Faces framework. The drawback is that when any decorator class is present which defaults to this base implementation, then any following decorator instances that do override this method do not get it invoked. It is believed that the Sun Faces implementation (Mojarra) does something similar. - Overrides:
- getELContextin class- FacesContext
 
 - 
getExceptionHandlerpublic ExceptionHandler getExceptionHandler() - Overrides:
- getExceptionHandlerin class- FacesContext
- Returns:
 
 - 
getExternalContextpublic ExternalContext getExternalContext() - Specified by:
- getExternalContextin class- FacesContext
 
 - 
getMaximumSeveritypublic FacesMessage.Severity getMaximumSeverity() - Specified by:
- getMaximumSeverityin class- FacesContext
 
 - 
getMessageListpublic List<FacesMessage> getMessageList() - Overrides:
- getMessageListin class- FacesContext
- Returns:
 
 - 
getMessageListpublic List<FacesMessage> getMessageList(String clientId) - Overrides:
- getMessageListin class- FacesContext
- Returns:
 
 - 
getMessagespublic Iterator<FacesMessage> getMessages() - Specified by:
- getMessagesin class- FacesContext
 
 - 
getMessagespublic Iterator<FacesMessage> getMessages(String clientId) - Specified by:
- getMessagesin class- FacesContext
 
 - 
getPartialViewContextpublic PartialViewContext getPartialViewContext() Description copied from class:FacesContextReturn the PartialViewContext for this request. The PartialViewContext is used to control the processing of specified components during the execute portion of the request processing lifecycle (known as partial processing) and the rendering of specified components (known as partial rendering). This method must return a new PartialViewContext if one does not already exist. - Overrides:
- getPartialViewContextin class- FacesContext
- Returns:
- The PartialViewContext
 
 - 
getRenderKitpublic RenderKit getRenderKit() - Specified by:
- getRenderKitin class- FacesContext
 
 - 
getRenderResponsepublic boolean getRenderResponse() - Specified by:
- getRenderResponsein class- FacesContext
 
 - 
getResponseCompletepublic boolean getResponseComplete() - Specified by:
- getResponseCompletein class- FacesContext
 
 - 
getResponseStreampublic ResponseStream getResponseStream() - Specified by:
- getResponseStreamin class- FacesContext
 
 - 
getResponseWriterpublic ResponseWriter getResponseWriter() - Specified by:
- getResponseWriterin class- FacesContext
 
 - 
isValidationFailedpublic boolean isValidationFailed() - Overrides:
- isValidationFailedin class- FacesContext
- Returns:
 
 - 
getViewRootpublic UIViewRoot getViewRoot() - Specified by:
- getViewRootin class- FacesContext
 
 - 
getWrappedpublic FacesContext getWrapped() Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
- getWrappedin interface- FacesWrapper<FacesContext>
- Returns:
- the instance of the class being wrapped
 
 - 
isPostbackpublic boolean isPostback() - Overrides:
- isPostbackin class- FacesContext
- Returns:
 
 - 
isProcessingEventspublic boolean isProcessingEvents() - Overrides:
- isProcessingEventsin class- FacesContext
- Returns:
 
 - 
releasepublic void release() - Specified by:
- releasein class- FacesContext
 
 - 
renderResponsepublic void renderResponse() - Specified by:
- renderResponsein class- FacesContext
 
 - 
responseCompletepublic void responseComplete() - Specified by:
- responseCompletein class- FacesContext
 
 - 
setCurrentPhaseIdpublic void setCurrentPhaseId(PhaseId currentPhaseId) - Overrides:
- setCurrentPhaseIdin class- FacesContext
 
 - 
setExceptionHandlerpublic void setExceptionHandler(ExceptionHandler exceptionHandler) - Overrides:
- setExceptionHandlerin class- FacesContext
 
 - 
setProcessingEventspublic void setProcessingEvents(boolean processingEvents) - Overrides:
- setProcessingEventsin class- FacesContext
 
 - 
setResponseStreampublic void setResponseStream(ResponseStream responseStream) - Specified by:
- setResponseStreamin class- FacesContext
 
 - 
setResponseWriterpublic void setResponseWriter(ResponseWriter responseWriter) - Specified by:
- setResponseWriterin class- FacesContext
 
 - 
setViewRootpublic void setViewRoot(UIViewRoot root) - Specified by:
- setViewRootin class- FacesContext
 
 - 
validationFailedpublic void validationFailed() - Overrides:
- validationFailedin class- FacesContext
 
 - 
isProjectStagepublic boolean isProjectStage(ProjectStage stage) - Overrides:
- isProjectStagein class- FacesContext
 
 - 
isReleasedpublic boolean isReleased() - Overrides:
- isReleasedin class- FacesContext
- Returns:
 
 - 
getNamingContainerSeparatorCharpublic char getNamingContainerSeparatorChar() - Overrides:
- getNamingContainerSeparatorCharin class- FacesContext
- Returns:
 
 - 
setResourceLibraryContractspublic void setResourceLibraryContracts(List<String> contracts) - Overrides:
- setResourceLibraryContractsin class- FacesContext
 
 - 
getResourceLibraryContractspublic List<String> getResourceLibraryContracts() - Overrides:
- getResourceLibraryContractsin class- FacesContext
- Returns:
 
 - 
getLifecyclepublic Lifecycle getLifecycle() - Specified by:
- getLifecyclein class- FacesContext
- Returns:
- Since:
- 4.0
 
 
- 
 
-