Class FacesContextWrapper
- All Implemented Interfaces:
- FacesWrapper<FacesContext>
- Since:
- 2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMessage(String clientId, FacesMessage message) jakarta.el.ELContextReturn the context within which all EL-expressions are evaluated.getMessageList(String clientId) getMessages(String clientId) charReturn the PartialViewContext for this request.booleanbooleanA class that implements this interface uses this method to return an instance of the class being wrapped.booleanbooleanbooleanisProjectStage(ProjectStage stage) booleanbooleanvoidrelease()voidvoidvoidsetCurrentPhaseId(PhaseId currentPhaseId) voidsetExceptionHandler(ExceptionHandler exceptionHandler) voidsetProcessingEvents(boolean processingEvents) voidsetResourceLibraryContracts(List<String> contracts) voidsetResponseStream(ResponseStream responseStream) voidsetResponseWriter(ResponseWriter responseWriter) voidsetViewRoot(UIViewRoot root) voidMethods inherited from class jakarta.faces.context.FacesContextgetCurrentInstance, setCurrentInstance
- 
Constructor Details- 
FacesContextWrapperDeprecated.
- 
FacesContextWrapper
 
- 
- 
Method Details- 
addMessage- Specified by:
- addMessagein class- FacesContext
 
- 
getApplication- Specified by:
- getApplicationin class- FacesContext
 
- 
getAttributes- Overrides:
- getAttributesin class- FacesContext
- Returns:
 
- 
getClientIdsWithMessages- Specified by:
- getClientIdsWithMessagesin class- FacesContext
 
- 
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
 
- 
getExceptionHandler- Overrides:
- getExceptionHandlerin class- FacesContext
- Returns:
 
- 
getExternalContext- Specified by:
- getExternalContextin class- FacesContext
 
- 
getMaximumSeverity- Specified by:
- getMaximumSeverityin class- FacesContext
 
- 
getMessageList- Overrides:
- getMessageListin class- FacesContext
- Returns:
 
- 
getMessageList- Overrides:
- getMessageListin class- FacesContext
- Returns:
 
- 
getMessages- Specified by:
- getMessagesin class- FacesContext
 
- 
getMessages- Specified by:
- getMessagesin class- FacesContext
 
- 
getPartialViewContextDescription 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
 
- 
getRenderKit- Specified by:
- getRenderKitin class- FacesContext
 
- 
getRenderResponsepublic boolean getRenderResponse()- Specified by:
- getRenderResponsein class- FacesContext
 
- 
getResponseCompletepublic boolean getResponseComplete()- Specified by:
- getResponseCompletein class- FacesContext
 
- 
getResponseStream- Specified by:
- getResponseStreamin class- FacesContext
 
- 
getResponseWriter- Specified by:
- getResponseWriterin class- FacesContext
 
- 
isValidationFailedpublic boolean isValidationFailed()- Overrides:
- isValidationFailedin class- FacesContext
- Returns:
 
- 
getViewRoot- Specified by:
- getViewRootin class- FacesContext
 
- 
getWrappedDescription 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
 
- 
setCurrentPhaseId- Overrides:
- setCurrentPhaseIdin class- FacesContext
 
- 
setExceptionHandler- Overrides:
- setExceptionHandlerin class- FacesContext
 
- 
setProcessingEventspublic void setProcessingEvents(boolean processingEvents) - Overrides:
- setProcessingEventsin class- FacesContext
 
- 
setResponseStream- Specified by:
- setResponseStreamin class- FacesContext
 
- 
setResponseWriter- Specified by:
- setResponseWriterin class- FacesContext
 
- 
setViewRoot- Specified by:
- setViewRootin class- FacesContext
 
- 
validationFailedpublic void validationFailed()- Overrides:
- validationFailedin class- FacesContext
 
- 
isProjectStage- Overrides:
- isProjectStagein class- FacesContext
 
- 
isReleasedpublic boolean isReleased()- Overrides:
- isReleasedin class- FacesContext
- Returns:
 
- 
getNamingContainerSeparatorCharpublic char getNamingContainerSeparatorChar()- Overrides:
- getNamingContainerSeparatorCharin class- FacesContext
- Returns:
 
- 
setResourceLibraryContracts- Overrides:
- setResourceLibraryContractsin class- FacesContext
 
- 
getResourceLibraryContracts- Overrides:
- getResourceLibraryContractsin class- FacesContext
- Returns:
 
- 
getLifecycle- Specified by:
- getLifecyclein class- FacesContext
- Returns:
- Since:
- 4.0
 
 
-