Uses of Class
jakarta.faces.context.FacesContext
Package
Description
-
Uses of FacesContext in com.sun.faces.application
Modifier and TypeMethodDescriptionprotected void
PropertyEditorHelper.addConversionErrorMessage
(FacesContext context, UIComponent component, ConverterException ce) Add a conversion error message in the case of a PropertyEditor based conversion error.ApplicationImpl.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType) ApplicationImpl.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) ApplicationImpl.createComponent
(FacesContext context, Resource componentResource) ApplicationImpl.createComponent
(FacesContext context, String componentType, String rendererType) protected DefaultFaceletFactory
ApplicationAssociate.createFaceletFactory
(FacesContext context, Compiler compiler, WebConfiguration webConfig) <T> T
ApplicationImpl.evaluateExpressionGet
(FacesContext context, String expression, Class<? extends T> expectedType) static ApplicationAssociate
ApplicationAssociate.getInstance
(FacesContext facesContext) NavigationHandlerImpl.getNavigationCase
(FacesContext context, String fromAction, String outcome) NavigationHandlerImpl.getNavigationCase
(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) ApplicationAssociate.getResourceBundle
(FacesContext context, String var) ApplicationImpl.getResourceBundle
(FacesContext context, String var) void
NavigationHandlerImpl.handleNavigation
(FacesContext context, String fromAction, String outcome) void
NavigationHandlerImpl.handleNavigation
(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) void
NavigationHandlerImpl.inspectFlow
(FacesContext context, Flow flow) static boolean
NavigationHandlerImpl.isResetFlowHandlerState
(FacesContext facesContext) void
ApplicationImpl.publishEvent
(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) void
ApplicationImpl.publishEvent
(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source) static void
NavigationHandlerImpl.setResetFlowHandlerStateIfUnset
(FacesContext facesContext, boolean resetFlowHandlerState) static void
NavigationHandlerImpl.unsetResetFlowHandlerState
(FacesContext facesContext) void
StateManagerImpl.writeState
(FacesContext context, Object state) Write out the state. -
Uses of FacesContext in com.sun.faces.application.annotation
Modifier and TypeMethodDescriptionvoid
AnnotationManager.applyBehaviorAnnotations
(FacesContext ctx, Behavior b) Apply annotations relevant toBehavior
instances.void
AnnotationManager.applyClientBehaviorRendererAnnotations
(FacesContext ctx, ClientBehaviorRenderer b) Apply annotations relevant toClientBehaviorRenderer
instances.void
AnnotationManager.applyComponentAnnotations
(FacesContext ctx, UIComponent c) Apply annotations relevant toUIComponent
instances.void
AnnotationManager.applyConfigAnnotations
(FacesContext ctx, Class<? extends Annotation> annotationType, Set<? extends Class> annotatedClasses) Apply the configuration metadata contained with in theCollection
of annotated classes.void
AnnotationManager.applyConverterAnnotations
(FacesContext ctx, Converter c) Apply annotations relevant toConverter
instances.void
AnnotationManager.applyRendererAnnotations
(FacesContext ctx, Renderer r, UIComponent c) Apply annotations relevent toRenderer
instances.void
AnnotationManager.applySystemEventAnnotations
(FacesContext ctx, SystemEvent e) void
AnnotationManager.applyValidatorAnnotations
(FacesContext ctx, Validator v) Apply annotations relevant toValidator
instances.protected void
JndiHandler.invokeMethod
(FacesContext facesContext, Method method, Object instance, Object value) Invoke the method.JndiHandler.lookup
(FacesContext facesContext, String name) Look up the given object using its JNDI name.void
BehaviorConfigHandler.push
(FacesContext ctx) void
ComponentConfigHandler.push
(FacesContext ctx) void
ConfigAnnotationHandler.push
(FacesContext ctx) Push
the configuration based on the collected metadata to the current application.void
ConverterConfigHandler.push
(FacesContext ctx) void
NamedEventConfigHandler.push
(FacesContext ctx) void
RenderKitConfigHandler.push
(FacesContext ctx) void
ValidatorConfigHandler.push
(FacesContext ctx) void
JndiHandler.setField
(FacesContext facesContext, Field field, Object instance, Object value) Set the field. -
Uses of FacesContext in com.sun.faces.application.applicationimpl
Modifier and TypeMethodDescriptionInstanceFactory.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType) InstanceFactory.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) InstanceFactory.createComponent
(FacesContext context, Resource componentResource, ExpressionFactory expressionFactory) InstanceFactory.createComponent
(FacesContext context, String componentType, String rendererType) <T> T
ExpressionLanguage.evaluateExpressionGet
(FacesContext context, String expression, Class<? extends T> expectedType) Singletons.getResourceBundle
(FacesContext context, String var) void
Events.publishEvent
(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source, ProjectStage projectStage) -
Uses of FacesContext in com.sun.faces.application.applicationimpl.events
Modifier and TypeMethodDescriptionvoid
ReentrantLisneterInvocationGuard.clearGuard
(FacesContext ctx, Class<? extends SystemEvent> systemEventClass) boolean
ReentrantLisneterInvocationGuard.isGuardSet
(FacesContext ctx, Class<? extends SystemEvent> systemEventClass) void
ReentrantLisneterInvocationGuard.setGuard
(FacesContext ctx, Class<? extends SystemEvent> systemEventClass) -
Uses of FacesContext in com.sun.faces.application.resource
Modifier and TypeMethodDescriptionprotected boolean
ResourceHelper.clientAcceptsCompression
(FacesContext ctx) This method attempt to verify that the user agent can accept a gzip encoded response by interrogating theAccept-Encoding
requester header.ResourceHandlerImpl.createViewResource
(FacesContext facesContext, String resourceName) ClasspathResourceHelper.findLibrary
(String libraryName, String localePrefix, String contract, FacesContext ctx) FaceletWebappResourceHelper.findLibrary
(String libraryName, String localePrefix, String contract, FacesContext ctx) abstract LibraryInfo
ResourceHelper.findLibrary
(String libraryName, String localePrefix, String contract, FacesContext ctx) Search for the specified library/localPrefix combination in an implementation dependent manner.WebappResourceHelper.findLibrary
(String libraryName, String localePrefix, String contract, FacesContext ctx) ClasspathResourceHelper.findLibraryWithZipDirectoryEntryScan
(String libraryName, String localePrefix, String contract, FacesContext ctx, boolean forceScan) ClasspathResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) FaceletWebappResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) abstract ResourceInfo
ResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) Search for the specified resource based in the library/localePrefix/resourceName combination in an implementation dependent manner.ResourceManager.findResource
(String libraryName, String resourceName, String contentType, boolean isViewResource, FacesContext ctx) ResourceManager.findResource
(String libraryName, String resourceName, String contentType, FacesContext ctx) WebappResourceHelper.findResource
(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx) ResourceManager.findViewResource
(String resourceName, String contentType, FacesContext facesContext) ResourceHelper.getInputStream
(ResourceInfo toStream, FacesContext ctx) If the resource is compressable, return an InputStream to read the compressed content, otherwise, callResourceHelper.getNonCompressedInputStream(ResourceInfo, jakarta.faces.context.FacesContext)
to return the content of the original resource.long
ClientResourceInfo.getLastModified
(FacesContext ctx) Returns the time this resource was last modified.long
ResourceHelper.getLastModified
(ResourceInfo resource, FacesContext ctx) The default implementation of this method will call through toResourceHelper.getURL(ResourceInfo, jakarta.faces.context.FacesContext)
and leverage the URL to obtain the date information of the resource and return the value ofURLConnection.getLastModified()
ResourceHelper.getLocalizedPaths
(String path, FacesContext ctx) protected InputStream
ClasspathResourceHelper.getNonCompressedInputStream
(ResourceInfo resource, FacesContext ctx) protected InputStream
FaceletWebappResourceHelper.getNonCompressedInputStream
(ResourceInfo info, FacesContext ctx) protected abstract InputStream
ResourceHelper.getNonCompressedInputStream
(ResourceInfo info, FacesContext ctx) If aResourceInfo
is not compressable,ResourceHelper.getInputStream(ResourceInfo, jakarta.faces.context.FacesContext)
will call this method to return a stream to the actual resource.protected InputStream
WebappResourceHelper.getNonCompressedInputStream
(ResourceInfo resource, FacesContext ctx) ClasspathResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) FaceletWebappResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) abstract URL
ResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) WebappResourceHelper.getURL
(ResourceInfo resource, FacesContext ctx) FaceletWebappResourceHelper.getViewResources
(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) ResourceHandlerImpl.getViewResources
(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) ResourceHandlerImpl.getViewResources
(FacesContext facesContext, String path, ResourceVisitOption... options) ResourceManager.getViewResources
(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) void
ResourceHandlerImpl.handleResourceRequest
(FacesContext context) boolean
ResourceHandlerImpl.isResourceRequest
(FacesContext context) protected boolean
ResourceHelper.resourceSupportsEL
(String resourceName, String libraryName, FacesContext ctx) boolean
ResourceImpl.userAgentNeedsUpdate
(FacesContext context) -
Uses of FacesContext in com.sun.faces.application.view
Modifier and TypeMethodDescriptionprotected void
MultiViewHandler.addViewParameters
(FacesContext ctx, String viewId, Map<String, List<String>> existingParameters) void
FaceletViewHandlingStrategy.buildView
(FacesContext ctx, UIViewRoot view) MultiViewHandler.calculateLocale
(FacesContext context) This code is currently common to allViewHandlingStrategy
instances.MultiViewHandler.calculateRenderKitId
(FacesContext context) This code is currently common to allViewHandlingStrategy
instances.FaceletViewHandlingStrategy.calculateResourceLibraryContracts
(FacesContext context, String viewId) void
ViewScopeContextManager.clear
(FacesContext facesContext) Clear the current view map using the Faces context.void
ViewScopeContextManager.clear
(FacesContext facesContext, String viewMapId, Map<String, Object> viewMap) Clear the given view map.void
ViewScopeContextManager.clear
(FacesContext facesContext, Map<String, Object> viewMap) Deprecated.void
ViewScopeManager.clear
(FacesContext facesContext) Clear the current view map using the Faces context.void
Clear the given view map.void
ViewScopeManager.clear
(FacesContext facesContext, Map<String, Object> viewMap) Deprecated.protected String
MultiViewHandler.convertViewId
(FacesContext context, String viewId) Adjust the viewID per the requirements ofMultiViewHandler.renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot)
.<T> T
ViewScopeContextManager.createBean
(FacesContext facesContext, Contextual<T> contextual, CreationalContext<T> creational) Create the bean.FaceletViewHandlingStrategy.createComponent
(FacesContext context, String taglibURI, String tagName, Map<String, Object> attributes) ViewMetadataImpl.createMetadataView
(FacesContext context) protected ResponseWriter
FaceletViewHandlingStrategy.createResponseWriter
(FacesContext context) FaceletViewHandlingStrategy.createView
(FacesContext ctx, String viewId) MultiViewHandler.createView
(FacesContext context, String viewId) Derive the physical view ID (i.e.ViewHandlingStrategy.createView
(FacesContext ctx, String viewId) MultiViewHandler.deriveLogicalViewId
(FacesContext context, String requestViewId) protected String
MultiViewHandler.derivePhysicalViewId
(FacesContext ctx, String requestViewId, boolean checkPhysical) MultiViewHandler.deriveViewId
(FacesContext context, String requestViewId) void
ViewScopeManager.destroyBeans
(FacesContext facesContext, Map<String, Object> viewMap) Destroy the managed beans from the given view map.protected Locale
MultiViewHandler.findMatch
(FacesContext context, Locale pref) Attempts to find a matching locale based onpref
and list of supported locales, using the matching algorithm as described in JSTL 8.3.2.void
ViewScopeContextManager.fireDestroyedEvent
(FacesContext facesContext, UIViewRoot root) void
ViewScopeContextManager.fireInitializedEvent
(FacesContext facesContext, UIViewRoot root) MultiViewHandler.getActionURL
(FacesContext context, String viewId) This code is currently common to allViewHandlingStrategy
instances.<T> T
ViewScopeContextManager.getBean
(FacesContext facesContext, Contextual<T> contextual) Get the value from the view map (or null if not found).MultiViewHandler.getBookmarkableURL
(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams) FaceletViewHandlingStrategy.getComponentMetadata
(FacesContext context, Resource ccResource) Called by Application._createComponent(Resource).MultiViewHandler.getFullParameterList
(FacesContext ctx, String viewId, Map<String, List<String>> existingParameters) static ViewScopeManager
ViewScopeManager.getInstance
(FacesContext facesContext) Get our instance.MultiViewHandler.getRedirectURL
(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams) MultiViewHandler.getResourceURL
(FacesContext context, String path) This code is currently common to allViewHandlingStrategy
instances.protected String
FaceletViewHandlingStrategy.getResponseContentType
(FacesContext context, String orig) protected String
FaceletViewHandlingStrategy.getResponseEncoding
(FacesContext context, String orig) FaceletViewHandlingStrategy.getScriptComponentResource
(FacesContext context, Resource componentResource) FaceletViewHandlingStrategy.getStateManagementStrategy
(FacesContext context, String viewId) MultiViewHandler.getViewDeclarationLanguage
(FacesContext context, String viewId) FaceletViewHandlingStrategy.getViewMetadata
(FacesContext context, String viewId) FaceletViewHandlingStrategy.getViews
(FacesContext context, String path, int maxDepth, ViewVisitOption... options) FaceletViewHandlingStrategy.getViews
(FacesContext context, String path, ViewVisitOption... options) MultiViewHandler.getViews
(FacesContext context, String path, int maxDepth, ViewVisitOption... options) MultiViewHandler.getViews
(FacesContext context, String path, ViewVisitOption... options) MultiViewHandler.getWebsocketURL
(FacesContext context, String channel) protected void
FaceletViewHandlingStrategy.handleFaceletNotFound
(FacesContext context, String viewId, String message) Handles the case where a Facelet cannot be found.protected void
FaceletViewHandlingStrategy.handleRenderException
(FacesContext context, Exception e) Handles the case where rendering throws an Exception.void
MultiViewHandler.initView
(FacesContext context) Call the default implementation ofViewHandler.initView(jakarta.faces.context.FacesContext)
static boolean
FaceletViewHandlingStrategy.isBuildingMetadata
(FacesContext context) protected static String
ViewScopeManager.locateViewMapId
(FacesContext facesContext, Map<String, Object> viewMap) Static method that locates the ID for a view map in the active view maps stored in the session.void
FaceletViewHandlingStrategy.renderView
(FacesContext ctx, UIViewRoot viewToRender) void
MultiViewHandler.renderView
(FacesContext context, UIViewRoot viewToRender) CallViewDeclarationLanguage.renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot)
if the view can be rendered.FaceletFullStateManagementStrategy.restoreView
(FacesContext context, String viewId, String renderKitId) Restore the view.FaceletPartialStateManagementStrategy.restoreView
(FacesContext context, String viewId, String renderKitId) Restore the view.FaceletViewHandlingStrategy.restoreView
(FacesContext context, String viewId) IfUIDebug.debugRequest(jakarta.faces.context.FacesContext)
} istrue
, simply return a new UIViewRoot(), otherwise, call the default logic.MultiViewHandler.restoreView
(FacesContext context, String viewId) ViewHandlingStrategy.restoreView
(FacesContext ctx, String viewId) void
FaceletViewHandlingStrategy.retargetAttachedObjects
(FacesContext context, UIComponent topLevelComponent, List<AttachedObjectHandler> handlers) void
FaceletViewHandlingStrategy.retargetMethodExpressions
(FacesContext context, UIComponent topLevelComponent) FaceletFullStateManagementStrategy.saveView
(FacesContext context) Save the view.FaceletPartialStateManagementStrategy.saveView
(FacesContext context) Save the view.protected void
MultiViewHandler.send404Error
(FacesContext context) SendHttpServletResponse.SC_NOT_FOUND
(404) to the client.boolean
FaceletViewHandlingStrategy.viewExists
(FacesContext context, String viewId) void
MultiViewHandler.writeState
(FacesContext context) This code is currently common to allViewHandlingStrategy
instances.ModifierConstructorDescriptionConstructor.Constructor. -
Uses of FacesContext in com.sun.faces.cdi
Modifier and TypeMethodDescriptionCdiConverter.getAsObject
(FacesContext facesContext, UIComponent component, String value) Get the object.CdiConverter.getAsString
(FacesContext facesContext, UIComponent component, Object value) Get the string representation.static <T> T
CdiUtils.getBeanReference
(FacesContext facesContext, Class<T> type, Annotation... qualifiers) void
CdiConverter.restoreState
(FacesContext facesContext, Object state) Restore the state.void
CdiValidator.restoreState
(FacesContext facesContext, Object state) Restore the state.CdiConverter.saveState
(FacesContext facesContext) Save the state.CdiValidator.saveState
(FacesContext facesContext) Save the state.void
CdiValidator.validate
(FacesContext facesContext, UIComponent component, Object value) Validate. -
Uses of FacesContext in com.sun.faces.cdi.clientwindow
Modifier and TypeMethodDescription<T> T
ClientWindowScopeContextManager.createBean
(FacesContext facesContext, Contextual<T> contextual, CreationalContext<T> creational) Create the bean.<T> T
ClientWindowScopeContextManager.getBean
(FacesContext facesContext, Contextual<T> contextual) Get the value from the ClientWindow-map (or null if not found).protected String
ClientWindowScopeContextManager.getCurrentClientWindowId
(FacesContext facesContext) static ClientWindowScopeManager
ClientWindowScopeManager.getInstance
(FacesContext facesContext) Get our instance. -
Uses of FacesContext in com.sun.faces.component
Modifier and TypeMethodDescriptionvoid
ComponentResourceContainer.encodeAll
(FacesContext context) Take no action to prevent component resources from inadvertantly being rendered.CompositeComponentStackManager.findCompositeComponentUsingLocation
(FacesContext ctx, Location location) CompositeComponentStackManager.getManager
(FacesContext ctx) CompositeComponentStackManager.getParentCompositeComponent
(CompositeComponentStackManager.StackType stackType, FacesContext ctx, UIComponent forComponent) -
Uses of FacesContext in com.sun.faces.component.behavior
Modifier and TypeMethodDescriptionvoid
AjaxBehaviors.BehaviorInfo.addBehavior
(FacesContext context, ClientBehaviorHolder behaviorHolder) void
AjaxBehaviors.addBehaviors
(FacesContext context, ClientBehaviorHolder behaviorHolder) static AjaxBehaviors
AjaxBehaviors.getAjaxBehaviors
(FacesContext context, boolean createIfNull) void
AjaxBehaviors.pushBehavior
(FacesContext context, AjaxBehavior ajaxBehavior, String eventName) Push theAjaxBehavior
instance onto theList
.ModifierConstructorDescriptionBehaviorInfo
(FacesContext context, AjaxBehavior ajaxBehavior, String eventName) -
Uses of FacesContext in com.sun.faces.component.search
Modifier and TypeMethodDescriptionprotected String
SearchExpressionHandlerImpl.extractFirstCommand
(FacesContext facesContext, String expression) Extract the first command from the expression.SearchExpressionContextFactoryImpl.getSearchExpressionContext
(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) String[]
SearchExpressionHandlerImpl.splitExpressions
(FacesContext context, String expressions) -
Uses of FacesContext in com.sun.faces.component.validator
Modifier and TypeMethodDescriptionstatic void
ComponentValidators.addDefaultValidatorsToComponent
(FacesContext ctx, EditableValueHolder editableValueHolder) Creates and installs default validators, if any, into the argumentEditableValueHolder
.void
ComponentValidators.addValidators
(FacesContext ctx, EditableValueHolder editableValueHolder) Based on theValidatorInfo
instances present on the stack, configure the argumentEditableValueHolder
withValidator
s created from the available info.static ComponentValidators
ComponentValidators.getValidators
(FacesContext context, boolean createIfNull) -
Uses of FacesContext in com.sun.faces.component.visit
Modifier and TypeMethodDescriptionFullVisitContext.getFacesContext()
PartialVisitContext.getFacesContext()
Modifier and TypeMethodDescriptionVisitContextFactoryImpl.getVisitContext
(FacesContext context, Collection<String> ids, Set<VisitHint> hints) ModifierConstructorDescriptionFullVisitContext
(FacesContext facesContext) Creates a FullVisitorContext instance.FullVisitContext
(FacesContext facesContext, Set<VisitHint> hints) Creates a FullVisitorContext instance with the specified hints.PartialVisitContext
(FacesContext facesContext, Collection<String> clientIds) Creates a PartialVisitorContext instance.PartialVisitContext
(FacesContext facesContext, Collection<String> clientIds, Set<VisitHint> hints) Creates a PartialVisitorContext instance with the specified hints. -
Uses of FacesContext in com.sun.faces.config
Modifier and TypeClassDescriptionclass
A special, minimal implementation of FacesContext used at application initialization time.Modifier and TypeMethodDescriptionvoid
ConfigManager.destroy
(ServletContext servletContext, FacesContext facesContext) This method will remove any information about the application.static Map
<Class<? extends Annotation>, Set<Class<?>>> ConfigManager.getAnnotatedClasses
(FacesContext ctx) static FaceletsConfiguration
FaceletsConfiguration.getInstance
(FacesContext context) boolean
FaceletsConfiguration.isEscapeInlineText
(FacesContext context) -
Uses of FacesContext in com.sun.faces.config.initfacescontext
Modifier and TypeMethodDescriptionvoid
NoOpFlash.doPostPhaseActions
(FacesContext ctx) void
NoOpFlash.doPrePhaseActions
(FacesContext ctx) -
Uses of FacesContext in com.sun.faces.config.processor
Modifier and TypeMethodDescriptionprotected Object
AbstractConfigProcessor.createInstance
(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source) protected Object
AbstractConfigProcessor.createInstance
(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection) protected Object
AbstractConfigProcessor.createInstance
(ServletContext sc, FacesContext facesContext, String className, Node source) void
AbstractConfigProcessor.destroy
(ServletContext sc, FacesContext facesContext) void
ApplicationConfigProcessor.destroy
(ServletContext sc, FacesContext facesContext) void
ConfigProcessor.destroy
(ServletContext servletContext, FacesContext facesContext) void
LifecycleConfigProcessor.destroy
(ServletContext sc, FacesContext facesContext) protected void
AbstractConfigProcessor.destroyInstance
(ServletContext sc, FacesContext facesContext, String className, Object instance) protected Class
<?> AbstractConfigProcessor.findRootType
(ServletContext sc, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments) void
AbstractConfigProcessor.initializeClassMetadataMap
(ServletContext servletContext, FacesContext facesContext) void
ConfigProcessor.initializeClassMetadataMap
(ServletContext servletContext, FacesContext facesContext) Called to initialize the per-application metadata used by the ConfigProcessorprotected Class
<?> AbstractConfigProcessor.loadClass
(ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType) void
ApplicationConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
BehaviorConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
ComponentConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
ConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) Process the array ofDocument
s.void
ConverterConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FaceletTaglibConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FacesConfigExtensionProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FacesFlowDefinitionConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FactoryConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
LifecycleConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
NavigationConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
ProtectedViewsConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
RenderKitConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
ResourceLibraryContractsConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) Process the configuration documents.void
ValidatorConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) protected void
AbstractConfigProcessor.processAnnotations
(FacesContext ctx, Class<? extends Annotation> annotationType) -
Uses of FacesContext in com.sun.faces.context
Modifier and TypeMethodDescriptionstatic FacesContext
FacesContextImpl.getDefaultFacesContext()
FacesContextFactoryImpl.getFacesContext
(Object sc, Object request, Object response, Lifecycle lifecycle) InjectionFacesContextFactory.getFacesContext
(Object context, Object request, Object response, Lifecycle lifecycle) Modifier and TypeMethodDescriptionPartialViewContextFactoryImpl.getPartialViewContext
(FacesContext context) static StateContext
StateContext.getStateContext
(FacesContext ctx) protected void
StateContext.DynamicAddRemoveListener.handleAdd
(FacesContext context, UIComponent component) Handle the add.protected void
StateContext.NoopAddRemoveListener.handleAdd
(FacesContext context, UIComponent component) protected void
StateContext.StatelessAddRemoveListener.handleAdd
(FacesContext context, UIComponent component) protected void
StateContext.DynamicAddRemoveListener.handleRemove
(FacesContext context, UIComponent component) Handle the remove.protected void
StateContext.NoopAddRemoveListener.handleRemove
(FacesContext context, UIComponent component) protected void
StateContext.StatelessAddRemoveListener.handleRemove
(FacesContext context, UIComponent component) boolean
StateContext.isPartialStateSaving
(FacesContext ctx, String viewId) static void
StateContext.release
(FacesContext facesContext) Release the state context.void
StateContext.startTrackViewModifications
(FacesContext ctx, UIViewRoot root) Installs aSystemEventListener
on theUIViewRoot
to track components added to or removed from the view.ModifierConstructorDescriptionDynamicAddRemoveListener
(FacesContext context) Constructor.NoopAddRemoveListener
(FacesContext context) StatelessAddRemoveListener
(FacesContext context) -
Uses of FacesContext in com.sun.faces.context.flash
Modifier and TypeMethodDescriptionvoid
ELFlash.doLastPhaseActions
(FacesContext context, boolean outgoingResponseIsRedirect) This is the most magic of methods.void
ELFlash.doPostPhaseActions
(FacesContext context) void
ELFlash.doPrePhaseActions
(FacesContext context) -
Uses of FacesContext in com.sun.faces.el
Modifier and TypeMethodDescriptionstatic ExpressionFactory
ELUtils.getDefaultExpressionFactory
(ApplicationAssociate associate, FacesContext facesContext) static ExpressionFactory
ELUtils.getDefaultExpressionFactory
(FacesContext facesContext) CompositeComponentAttributesELResolver.getEvalMapFor
(UIComponent c, FacesContext ctx) Creates (if necessary) and caches anExpressionEvalMap
instance associated with the owningUIComponent
-
Uses of FacesContext in com.sun.faces.ext.component
Modifier and TypeMethodDescriptionvoid
UIValidateWholeBean.encodeBegin
(FacesContext context) static Object
MessageFactory.getLabel
(FacesContext context, UIComponent component) Returns thelabel
property from the specified component.static FacesMessage
MessageFactory.getMessage
(FacesContext context, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.void
UIValidateWholeBean.restoreState
(FacesContext context, Object state) UIValidateWholeBean.saveState
(FacesContext context) void
UIValidateWholeBean.updateModel
(FacesContext context) void
UIValidateWholeBean.validate
(FacesContext context) -
Uses of FacesContext in com.sun.faces.facelets.compiler
Modifier and TypeMethodDescriptionvoid
UILeaf.decode
(FacesContext faces) void
UILeaf.encodeAll
(FacesContext faces) void
UIInstructions.encodeBegin
(FacesContext context) void
UILeaf.encodeBegin
(FacesContext faces) void
UILiteralText.encodeBegin
(FacesContext faces) void
UIText.encodeBegin
(FacesContext context) void
UILeaf.encodeChildren
(FacesContext faces) void
UILeaf.encodeEnd
(FacesContext faces) CompilationMessageHolder.getNamespacePrefixMessages
(FacesContext context, String prefix) CompilationMessageHolderImpl.getNamespacePrefixMessages
(FacesContext context, String prefix) protected Renderer
UILeaf.getRenderer
(FacesContext faces) void
CompilationMessageHolder.processCompilationMessages
(FacesContext context) void
CompilationMessageHolderImpl.processCompilationMessages
(FacesContext context) void
UILeaf.processDecodes
(FacesContext faces) void
UILeaf.processUpdates
(FacesContext faces) void
UILeaf.processValidators
(FacesContext faces) void
XMLInstruction.write
(FacesContext context) -
Uses of FacesContext in com.sun.faces.facelets.component
Modifier and TypeMethodDescriptionvoid
RepeatRenderer.encodeBegin
(FacesContext context, UIComponent component) void
RepeatRenderer.encodeChildren
(FacesContext context, UIComponent component) void
UIRepeat.encodeChildren
(FacesContext faces) void
RepeatRenderer.encodeEnd
(FacesContext context, UIComponent component) UIRepeat.getClientId
(FacesContext faces) boolean
UIRepeat.invokeOnComponent
(FacesContext faces, String clientId, ContextCallback callback) void
UIRepeat.process
(FacesContext faces, PhaseId phase) void
UIRepeat.processDecodes
(FacesContext faces) void
UIRepeat.processUpdates
(FacesContext faces) void
UIRepeat.processValidators
(FacesContext faces) void
UIRepeat.restoreState
(FacesContext faces, Object object) UIRepeat.saveState
(FacesContext faces) -
Uses of FacesContext in com.sun.faces.facelets.impl
Modifier and TypeMethodDescriptionDefaultFaceletFactory._createComponent
(FacesContext context, String taglibURI, String tagName, Map<String, Object> attributes) DefaultFaceletFactory.getFacelet
(FacesContext context, String viewId) DefaultFaceletFactory.getFacelet
(FacesContext context, URL url) Create a Facelet from the passed URL.static IdMapper
IdMapper.getMapper
(FacesContext ctx) DefaultFaceletFactory.getMetadataFacelet
(FacesContext context, String viewId) DefaultFaceletFactory.getMetadataFacelet
(FacesContext context, URL url) final void
DefaultFaceletFactory.init
(FacesContext facesContext, Compiler compiler, DefaultResourceResolver resolver, long refreshPeriod, FaceletCache cache) static void
IdMapper.setMapper
(FacesContext ctx, IdMapper mapper) -
Uses of FacesContext in com.sun.faces.facelets.tag.composite
Modifier and TypeMethodDescriptionvoid
BehaviorHolderWrapper.decode
(FacesContext context) void
RetargetedAjaxBehavior.decode
(FacesContext context, UIComponent component) void
BehaviorHolderWrapper.encodeBegin
(FacesContext context) void
BehaviorHolderWrapper.encodeChildren
(FacesContext context) void
BehaviorHolderWrapper.encodeEnd
(FacesContext context) BehaviorHolderWrapper.getClientId
(FacesContext context) protected Renderer
BehaviorHolderWrapper.getRenderer
(FacesContext context) boolean
BehaviorHolderWrapper.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) void
BehaviorHolderWrapper.processDecodes
(FacesContext context) void
BehaviorHolderWrapper.processRestoreState
(FacesContext context, Object state) BehaviorHolderWrapper.processSaveState
(FacesContext context) void
BehaviorHolderWrapper.processUpdates
(FacesContext context) void
BehaviorHolderWrapper.processValidators
(FacesContext context) void
BehaviorHolderWrapper.restoreState
(FacesContext context, Object state) void
RetargetedAjaxBehavior.restoreState
(FacesContext context, Object state) BehaviorHolderWrapper.saveState
(FacesContext context) RetargetedAjaxBehavior.saveState
(FacesContext context) -
Uses of FacesContext in com.sun.faces.facelets.tag.faces
Modifier and TypeMethodDescriptionvoid
ConverterTagHandlerDelegateImpl.applyAttachedObject
(FacesContext context, UIComponent parent) void
ValidatorTagHandlerDelegateImpl.applyAttachedObject
(FacesContext context, UIComponent parent) static void
ComponentSupport.encodeRecursive
(FacesContext context, UIComponent viewToRender) static UIComponent
ComponentSupport.findChildByTagId
(FacesContext context, UIComponent parent, String id) By TagId, find Childstatic UIComponent
ComponentSupport.findUIInstructionChildByTagId
(FacesContext context, UIComponent parent, String id) CompositeComponentTagHandler.getCompositeComponent
(FacesContext context) static Tag
ComponentSupport.getTagForComponent
(FacesContext context, UIComponent c) static boolean
ComponentSupport.isBuildingNewComponentTree
(FacesContext context) static boolean
ComponentSupport.isNotRenderingResponse
(FacesContext context) Returnstrue
if the given faces context is notisReleased()
, and its current phase ID is notPhaseId.RENDER_RESPONSE
.static void
ComponentSupport.restoreFullDescendantComponentDeltaStates
(FacesContext facesContext, Iterator<UIComponent> childIterator, Object state, Object initialState, boolean restoreChildFacets) static void
ComponentSupport.restoreFullDescendantComponentStates
(FacesContext facesContext, Iterator<UIComponent> childIterator, Object state, boolean restoreChildFacets) static void
ComponentSupport.restoreTransientDescendantComponentStates
(FacesContext facesContext, Iterator<UIComponent> childIterator, Map<String, Object> state, boolean restoreChildFacets) ComponentSupport.saveDescendantComponentStates
(FacesContext facesContext, Map<String, Object> stateMap, Iterator<UIComponent> childIterator, BiFunction<UIComponent, FacesContext, Object> stateSaver, boolean saveChildFacets) static Collection
<Object[]> ComponentSupport.saveDescendantInitialComponentStates
(FacesContext facesContext, Iterator<UIComponent> childIterator, boolean saveChildFacets) static boolean
CompositeComponentTagLibrary.scriptComponentForResourceExists
(FacesContext context, Resource componentResource) void
CompositeComponentTagHandler.setCompositeComponent
(FacesContext context, UIComponent cc) static Tag
ComponentSupport.setTagForComponent
(FacesContext context, UIComponent c, Tag t) static boolean
ComponentSupport.suppressViewModificationEvents
(FacesContext ctx) Modifier and TypeMethodDescriptionComponentSupport.saveDescendantComponentStates
(FacesContext facesContext, Map<String, Object> stateMap, Iterator<UIComponent> childIterator, BiFunction<UIComponent, FacesContext, Object> stateSaver, boolean saveChildFacets) -
Uses of FacesContext in com.sun.faces.facelets.tag.faces.core
Modifier and TypeMethodDescriptionvoid
ActionListenerHandler.applyAttachedObject
(FacesContext context, UIComponent parent) abstract void
ActionListenerHandlerBase.applyAttachedObject
(FacesContext context, UIComponent parent) void
AjaxHandler.applyAttachedObject
(FacesContext context, UIComponent parent) void
ResetValuesHandler.applyAttachedObject
(FacesContext context, UIComponent parent) void
SetPropertyActionListenerHandler.applyAttachedObject
(FacesContext context, UIComponent parent) void
ValueChangeListenerHandler.applyAttachedObject
(FacesContext context, UIComponent parent) -
Uses of FacesContext in com.sun.faces.facelets.tag.ui
Modifier and TypeMethodDescriptionstatic boolean
UIDebug.debugRequest
(FacesContext faces) void
UIDebug.encodeBegin
(FacesContext facesContext) -
Uses of FacesContext in com.sun.faces.facelets.util
Modifier and TypeMethodDescriptionstatic void
DevTools.debugHtml
(Writer writer, FacesContext faces) static void
DevTools.debugHtml
(Writer writer, FacesContext faces, Throwable e) static void
DevTools.writeVariables
(Writer writer, FacesContext faces) -
Uses of FacesContext in com.sun.faces.flow
Modifier and TypeMethodDescriptionvoid
FlowHandlerImpl.addFlow
(FacesContext context, Flow toAdd) void
FlowHandlerImpl.clientWindowTransition
(FacesContext context) FlowHandlerFactoryImpl.createFlowHandler
(FacesContext context) Create the flow handler.int
FlowHandlerImpl.getAndClearReturnModeDepth
(FacesContext context) FlowCallNodeImpl.getCalledFlowDocumentId
(FacesContext context) FlowCallNodeImpl.getCalledFlowId
(FacesContext context) SwitchCaseImpl.getCondition
(FacesContext context) FlowHandlerImpl.getCurrentFlow
(FacesContext context) SwitchNodeImpl.getDefaultOutcome
(FacesContext context) FlowHandlerImpl.getFlow
(FacesContext context, String definingDocumentId, String id) ReturnNodeImpl.getFromOutcome
(FacesContext context) FlowHandlerImpl.getLastDisplayedViewId
(FacesContext context) void
FlowImpl.init
(FacesContext context) boolean
FlowHandlerImpl.isActive
(FacesContext context, String definingDocumentId, String id) void
FlowHandlerImpl.popReturnMode
(FacesContext context) void
FlowHandlerImpl.pushReturnMode
(FacesContext context) void
FlowHandlerImpl.transition
(FacesContext context, Flow sourceFlow, Flow targetFlow, FlowCallNode outboundCallNode, String toViewId) ModifierConstructorDescriptionMethodCallNodeImpl
(FacesContext context, String id, String methodExpressionString, String defaultOutcomeString, List<Parameter> parametersFromConfig) -
Uses of FacesContext in com.sun.faces.flow.builder
Modifier and TypeMethodDescriptionMutableNavigationCase.getCondition
(FacesContext context) MutableNavigationCase.getToViewId
(FacesContext context) -
Uses of FacesContext in com.sun.faces.lifecycle
Modifier and TypeMethodDescriptionvoid
LifecycleImpl.attachWindow
(FacesContext context) void
ClientWindowImpl.decode
(FacesContext context) void
Phase.doPhase
(FacesContext context, Lifecycle lifecycle, ListIterator<PhaseListener> listeners) Performs PhaseListener processing and invokes the execute method of the Phase.void
RestoreViewPhase.doPhase
(FacesContext context, Lifecycle lifecycle, ListIterator<PhaseListener> listeners) void
ApplyRequestValuesPhase.execute
(FacesContext facesContext) void
InvokeApplicationPhase.execute
(FacesContext facesContext) void
LifecycleImpl.execute
(FacesContext context) abstract void
Phase.execute
(FacesContext context) Perform all state transitions required by the current phase of the request processingLifecycle
for a particular request.void
ProcessValidationsPhase.execute
(FacesContext facesContext) void
RenderResponsePhase.execute
(FacesContext facesContext) void
RestoreViewPhase.execute
(FacesContext facesContext) PRECONDITION: the necessary factories have been installed in the ServletContext attr set.void
UpdateModelValuesPhase.execute
(FacesContext facesContext) ClientWindowFactoryImpl.getClientWindow
(FacesContext context) ClientWindowImpl.getQueryURLParameters
(FacesContext context) protected void
Phase.handleAfterPhase
(FacesContext context, ListIterator<PhaseListener> listenersIterator, PhaseEvent event) HandleafterPhase
PhaseListener
events.protected void
Phase.handleBeforePhase
(FacesContext context, ListIterator<PhaseListener> listenersIterator, PhaseEvent event) HandlebeforePhase
PhaseListener
events.protected void
Phase.queueException
(FacesContext ctx, Throwable t) protected void
Phase.queueException
(FacesContext ctx, Throwable t, String booleanKey) void
LifecycleImpl.render
(FacesContext context) -
Uses of FacesContext in com.sun.faces.push
Modifier and TypeMethodDescriptionstatic boolean
WebsocketFacesListener.isNew
(FacesContext context, UIWebsocket websocket) WebsocketChannelManager.register
(FacesContext context, String channel, String scope, Serializable user) Register given channel on given scope and returns the web socket channel identifier.static void
WebsocketFacesListener.subscribeIfNecessary
(FacesContext context) -
Uses of FacesContext in com.sun.faces.renderkit
Modifier and TypeMethodDescriptionbyte[]
ByteArrayGuard.decrypt
(FacesContext facesContext, byte[] bytes) This method decrypts the provided byte array.protected Object
ClientSideStateHelper.doGetState
(FacesContext ctx, String stateString) Rebuilds the view state from the Base64 included String included with the request.protected void
ClientSideStateHelper.doWriteState
(FacesContext facesContext, Object state, Writer writer) Serializes and Base64 encodes the providedstate
to the providedwriter
/byte[]
ByteArrayGuard.encrypt
(FacesContext facesContext, byte[] bytes) This method: Encrypts bytes using a cipher.ResponseStateManagerImpl.getCryptographicallyStrongTokenFromSession
(FacesContext context) StateHelper.getCryptographicallyStrongTokenFromSession
(FacesContext context) static RenderKit
RenderKitUtils.getCurrentRenderKit
(FacesContext context) Return theRenderKit
for the current request.static UIForm
RenderKitUtils.getForm
(UIComponent component, FacesContext context) Utility method to return the client ID of the parent form.static String
RenderKitUtils.getFormClientId
(UIComponent component, FacesContext context) Utility method to return the client ID of the parent form.static String
RenderKitUtils.getImageSource
(FacesContext context, UIComponent component, String attrName) Determine the path value of an image value for a component such as UIGraphic or UICommand.RenderKitUtils.PredefinedPostbackParameter.getName
(FacesContext context) static String
RenderKitUtils.getParameterName
(FacesContext context, String name) If view root is instance of naming container, prepend its container client id to namespace given parameter name.RenderKitFactoryImpl.getRenderKit
(FacesContext context, String renderKitId) static ResponseStateManager
RenderKitUtils.getResponseStateManager
(FacesContext context, String renderKitId) Obtain and return theResponseStateManager
for the specified #renderKitId.static SelectItemsIterator
<SelectItem> RenderKitUtils.getSelectItems
(FacesContext context, UIComponent component) Return a List ofSelectItem
instances representing the available options for this component, assembled from the set ofUISelectItem
and/orUISelectItems
components that are direct children of this component.ClientSideStateHelper.getState
(FacesContext ctx, String viewId) Inspects the incoming request parameters for the standardized state parameter name.ResponseStateManagerImpl.getState
(FacesContext context, String viewId) ServerSideStateHelper.getState
(FacesContext ctx, String viewId) Inspects the incoming request parameters for the standardized state parameter name.abstract Object
StateHelper.getState
(FacesContext ctx, String viewId) protected static String
StateHelper.getStateParamValue
(FacesContext context) Get our view state from this requestRenderKitUtils.PredefinedPostbackParameter.getValue
(FacesContext context) ResponseStateManagerImpl.getViewState
(FacesContext context, Object state) static void
RenderKitUtils.installFacesJsIfNecessary
(FacesContext context) Only install the Faces script resource if it doesn't exist.static boolean
RenderKitUtils.isFacesJsInstalled
(FacesContext context) static boolean
RenderKitUtils.isOutputHtml5Doctype
(FacesContext context) Returnstrue
if the view root associated with the given faces context will be rendered with a HTML5 doctype.static boolean
RenderKitUtils.isPartialOrBehaviorAction
(FacesContext context, String clientId) boolean
ResponseStateManagerImpl.isPostback
(FacesContext context) boolean
ClientSideStateHelper.isStateless
(FacesContext facesContext, String viewId) Is stateless.boolean
ResponseStateManagerImpl.isStateless
(FacesContext facesContext, String viewId) boolean
ServerSideStateHelper.isStateless
(FacesContext facesContext, String viewId) Is stateless.abstract boolean
StateHelper.isStateless
(FacesContext ctx, String viewId) static void
RenderKitUtils.renderFacesJsIfNecessary
(FacesContext context) Renders the Javascript necessary to add and remove request parameters to the current form.static void
RenderKitUtils.renderFunction
(FacesContext context, UIComponent component, Collection<ClientBehaviorContext.Parameter> params, String submitTarget) static void
RenderKitUtils.renderHtmlErrorPage
(FacesContext ctx, FacesException fe) static void
RenderKitUtils.renderOnchange
(FacesContext context, UIComponent component, boolean incExec) static void
RenderKitUtils.renderOnclick
(FacesContext context, UIComponent component, Collection<ClientBehaviorContext.Parameter> params, String submitTarget, boolean needsSubmit) static void
RenderKitUtils.renderPassThruAttributes
(FacesContext context, ResponseWriter writer, UIComponent component, Attribute[] attributes) Render any "passthru" attributes, where we simply just output the raw name and value of the attribute.static void
RenderKitUtils.renderPassThruAttributes
(FacesContext context, ResponseWriter writer, UIComponent component, Attribute[] attributes, Map<String, List<ClientBehavior>> behaviors) Render any "passthru" attributes, where we simply just output the raw name and value of the attribute.static void
RenderKitUtils.renderSelectOnclick
(FacesContext context, UIComponent component, boolean incExec) static void
RenderKitUtils.renderUnhandledMessages
(FacesContext ctx) protected void
StateHelper.writeClientWindowField
(FacesContext context, ResponseWriter writer) Write the client window state field.protected void
StateHelper.writeRenderKitIdField
(FacesContext context, ResponseWriter writer) If a customRenderKit
is used, write out the ID of theRenderKit
out as a hidden field.void
ClientSideStateHelper.writeState
(FacesContext ctx, Object state, StringBuilder stateCapture) Writes the view state as a String generated by Base64 encoding the Java Serialziation representation of the providedstate
void
ResponseStateManagerImpl.writeState
(FacesContext context, Object state) void
ServerSideStateHelper.writeState
(FacesContext ctx, Object state, StringBuilder stateCapture) Stores the provided state within the session obtained from the providedFacesContext
abstract void
StateHelper.writeState
(FacesContext ctx, Object state, StringBuilder stateCapture) Functionally similar to ResponseStateManager#writeState(FacesContext, Object) with an option to write the state directly to the providedStringBuilder
without sending any markup to the client.ModifierConstructorDescriptionSelectItemsIterator
(FacesContext ctx, UIComponent parent) Construct an iterator instance for the specified parent component. -
Uses of FacesContext in com.sun.faces.renderkit.html_basic
Modifier and TypeMethodDescriptionvoid
RadioRenderer.Group.addRadio
(FacesContext context, UISelectOne radio) protected void
BaseTableRenderer.clearMetaInfo
(FacesContext context, UIComponent table) Removes the cached TableMetaInfo from the specified component.protected Object
MenuRenderer.coerceToModelType
(FacesContext ctx, Object value, Class<?> itemValueType) HtmlBasicRenderer.convertClientId
(FacesContext context, String clientId) MenuRenderer.convertSelectManyValue
(FacesContext context, UISelectMany uiSelectMany, String[] newValues) protected Object
MenuRenderer.convertSelectManyValuesForArray
(FacesContext context, UISelectMany uiSelectMany, Class<?> elementType, String[] newValues) protected Collection
<Object> MenuRenderer.convertSelectManyValuesForCollection
(FacesContext context, UISelectMany uiSelectMany, Class<? extends Collection<Object>> collectionType, String[] newValues) protected Object
MenuRenderer.convertSelectManyValuesForModel
(FacesContext context, UISelectMany uiSelectMany, Class<?> modelType, String[] newValues) MenuRenderer.convertSelectOneValue
(FacesContext context, UISelectOne uiSelectOne, String newValue) void
AjaxBehaviorRenderer.decode
(FacesContext context, UIComponent component, ClientBehavior behavior) void
BodyRenderer.decode
(FacesContext context, UIComponent component) void
ButtonRenderer.decode
(FacesContext context, UIComponent component) void
CheckboxRenderer.decode
(FacesContext context, UIComponent component) void
CommandLinkRenderer.decode
(FacesContext context, UIComponent component) void
CommandScriptRenderer.decode
(FacesContext context, UIComponent component) void
DoctypeRenderer.decode
(FacesContext context, UIComponent component) void
FileRenderer.decode
(FacesContext context, UIComponent component) void
FormRenderer.decode
(FacesContext context, UIComponent component) void
HeadRenderer.decode
(FacesContext context, UIComponent component) void
HtmlBasicRenderer.decode
(FacesContext context, UIComponent component) void
MenuRenderer.decode
(FacesContext context, UIComponent component) void
OutcomeTargetRenderer.decode
(FacesContext context, UIComponent component) void
OutputLinkRenderer.decode
(FacesContext context, UIComponent component) void
RadioRenderer.decode
(FacesContext context, UIComponent component) This override delegates todecodeGroup(FacesContext context, UISelectOne radio, Group group)
when 'group' attribute is set.final void
ScriptStyleBaseRenderer.decode
(FacesContext context, UIComponent component) void
WebsocketRenderer.decode
(FacesContext context, UIComponent component) Decode all client behaviors.protected final String
HtmlBasicRenderer.decodeBehaviors
(FacesContext context, UIComponent component) protected void
RadioRenderer.decodeGroup
(FacesContext context, UISelectOne radio, RadioRenderer.Group group) The difference with default decoding is: Submitted value is obtained by group name.void
BodyRenderer.encodeBegin
(FacesContext context, UIComponent component) Encode the beginning.void
ButtonRenderer.encodeBegin
(FacesContext context, UIComponent component) void
CheckboxRenderer.encodeBegin
(FacesContext context, UIComponent component) void
CommandLinkRenderer.encodeBegin
(FacesContext context, UIComponent component) void
CommandScriptRenderer.encodeBegin
(FacesContext context, UIComponent component) void
DoctypeRenderer.encodeBegin
(FacesContext context, UIComponent component) void
FileRenderer.encodeBegin
(FacesContext context, UIComponent component) void
FormRenderer.encodeBegin
(FacesContext context, UIComponent component) void
GridRenderer.encodeBegin
(FacesContext context, UIComponent component) void
GroupRenderer.encodeBegin
(FacesContext context, UIComponent component) void
HeadRenderer.encodeBegin
(FacesContext context, UIComponent component) void
HiddenRenderer.encodeBegin
(FacesContext context, UIComponent component) void
ImageRenderer.encodeBegin
(FacesContext context, UIComponent component) void
LabelRenderer.encodeBegin
(FacesContext context, UIComponent component) void
MenuRenderer.encodeBegin
(FacesContext context, UIComponent component) void
MessageRenderer.encodeBegin
(FacesContext context, UIComponent component) void
MessagesRenderer.encodeBegin
(FacesContext context, UIComponent component) void
OutcomeTargetButtonRenderer.encodeBegin
(FacesContext context, UIComponent component) void
OutcomeTargetLinkRenderer.encodeBegin
(FacesContext context, UIComponent component) void
OutputLinkRenderer.encodeBegin
(FacesContext context, UIComponent component) void
OutputMessageRenderer.encodeBegin
(FacesContext context, UIComponent component) void
PassthroughRenderer.encodeBegin
(FacesContext context, UIComponent component) void
ScriptStyleBaseRenderer.encodeBegin
(FacesContext context, UIComponent component) void
SecretRenderer.encodeBegin
(FacesContext context, UIComponent component) void
TableRenderer.encodeBegin
(FacesContext context, UIComponent component) void
TextareaRenderer.encodeBegin
(FacesContext context, UIComponent component) void
TextRenderer.encodeBegin
(FacesContext context, UIComponent component) void
BodyRenderer.encodeChildren
(FacesContext context, UIComponent component) void
CommandLinkRenderer.encodeChildren
(FacesContext context, UIComponent component) void
CompositeFacetRenderer.encodeChildren
(FacesContext context, UIComponent component) void
CompositeRenderer.encodeChildren
(FacesContext context, UIComponent component) void
DoctypeRenderer.encodeChildren
(FacesContext context, UIComponent component) void
GridRenderer.encodeChildren
(FacesContext context, UIComponent component) void
GroupRenderer.encodeChildren
(FacesContext context, UIComponent component) void
HeadRenderer.encodeChildren
(FacesContext context, UIComponent component) void
MessageRenderer.encodeChildren
(FacesContext context, UIComponent component) void
OutputLinkRenderer.encodeChildren
(FacesContext context, UIComponent component) void
PassthroughRenderer.encodeChildren
(FacesContext context, UIComponent component) final void
ScriptStyleBaseRenderer.encodeChildren
(FacesContext context, UIComponent component) void
TableRenderer.encodeChildren
(FacesContext context, UIComponent component) void
TextRenderer.encodeChildren
(FacesContext context, UIComponent component) void
BodyRenderer.encodeEnd
(FacesContext context, UIComponent component) void
ButtonRenderer.encodeEnd
(FacesContext context, UIComponent component) void
CommandLinkRenderer.encodeEnd
(FacesContext context, UIComponent component) void
CommandScriptRenderer.encodeEnd
(FacesContext context, UIComponent component) void
DoctypeRenderer.encodeEnd
(FacesContext context, UIComponent component) void
FormRenderer.encodeEnd
(FacesContext context, UIComponent component) void
GridRenderer.encodeEnd
(FacesContext context, UIComponent component) void
GroupRenderer.encodeEnd
(FacesContext context, UIComponent component) void
HeadRenderer.encodeEnd
(FacesContext context, UIComponent component) void
HtmlBasicRenderer.encodeEnd
(FacesContext context, UIComponent component) void
ImageRenderer.encodeEnd
(FacesContext context, UIComponent component) void
LabelRenderer.encodeEnd
(FacesContext context, UIComponent component) void
MenuRenderer.encodeEnd
(FacesContext context, UIComponent component) void
MessageRenderer.encodeEnd
(FacesContext context, UIComponent component) void
MessagesRenderer.encodeEnd
(FacesContext context, UIComponent component) void
OutcomeTargetButtonRenderer.encodeEnd
(FacesContext context, UIComponent component) void
OutcomeTargetLinkRenderer.encodeEnd
(FacesContext context, UIComponent component) void
OutputLinkRenderer.encodeEnd
(FacesContext context, UIComponent component) void
OutputMessageRenderer.encodeEnd
(FacesContext context, UIComponent component) void
PassthroughRenderer.encodeEnd
(FacesContext context, UIComponent component) void
RadioRenderer.encodeEnd
(FacesContext context, UIComponent component) This override delegates toencodeEndGroup(FacesContext context, UISelectOne radio, Group group)
when 'group' attribute is set.void
ScriptStyleBaseRenderer.encodeEnd
(FacesContext context, UIComponent component) void
SelectManyCheckboxListRenderer.encodeEnd
(FacesContext context, UIComponent component) void
TableRenderer.encodeEnd
(FacesContext context, UIComponent component) void
WebsocketRenderer.encodeEnd
(FacesContext context, UIComponent component) Renderfaces.push.init()
function if necessary.protected void
RadioRenderer.encodeEndGroup
(FacesContext context, UISelectOne radio, RadioRenderer.Group group) The difference with default encoding is: Every radio button of same 'group' will have same 'name' attribute rendered, relative to UIForm parent.protected void
HtmlBasicRenderer.encodeRecursive
(FacesContext context, UIComponent component) Render nested child components by invoking the encode methods on those components, but only when therendered
property istrue
.CheckboxRenderer.getConvertedValue
(FacesContext context, UIComponent component, Object submittedValue) FileRenderer.getConvertedValue
(FacesContext context, UIComponent component, Object submittedValue) HtmlBasicInputRenderer.getConvertedValue
(FacesContext context, UIComponent component, Object submittedValue) MenuRenderer.getConvertedValue
(FacesContext context, UIComponent component, Object submittedValue) protected String
HtmlBasicRenderer.getCurrentValue
(FacesContext context, UIComponent component) protected String
OutcomeTargetRenderer.getEncodedTargetURL
(FacesContext context, UIComponent component, NavigationCase navCase) Resolve the target view id and then delegate toViewHandler.getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean)
to produce a redirect URL, which will add the page parameters if necessary and properly prioritizing the parameter overrides.protected void
CheckboxRenderer.getEndTextToRender
(FacesContext context, UIComponent component, String currentValue) protected void
FileRenderer.getEndTextToRender
(FacesContext context, UIComponent component, String currentValue) protected void
HiddenRenderer.getEndTextToRender
(FacesContext context, UIComponent component, String currentValue) protected void
HtmlBasicRenderer.getEndTextToRender
(FacesContext context, UIComponent component, String currentValue) Renderers override this method to write appropriate HTML content into the buffer.protected void
SecretRenderer.getEndTextToRender
(FacesContext context, UIComponent component, String currentValue) protected void
TextareaRenderer.getEndTextToRender
(FacesContext context, UIComponent component, String currentValue) protected void
TextRenderer.getEndTextToRender
(FacesContext context, UIComponent component, String currentValue) protected UIComponent
HtmlBasicRenderer.getForComponent
(FacesContext context, String forComponent, UIComponent component) Locates the component identified byforComponent
protected String
LabelRenderer.getForComponentClientId
(UIComponent component, FacesContext context, String forValue) Builds and returns the clientId of the component that is represented by the forValue.protected String
HtmlBasicRenderer.getFormattedValue
(FacesContext context, UIComponent component, Object currentValue) protected String
HtmlBasicRenderer.getFormattedValue
(FacesContext context, UIComponent component, Object currentValue, Converter converter) Overloads getFormattedValue to take a advantage of a previously obtained converter.protected static RadioRenderer.Group
RadioRenderer.getGroup
(FacesContext context, UISelectOne radio) protected Iterator
HtmlBasicRenderer.getMessageIter
(FacesContext context, String forComponent, UIComponent component) protected BaseTableRenderer.TableMetaInfo
BaseTableRenderer.getMetaInfo
(FacesContext context, UIComponent table) Returns aTableMetaInfo
object containing details such as row and column classes, columns, and a mechanism for scrolling through the row/column classes.protected NavigationCase
OutcomeTargetRenderer.getNavigationCase
(FacesContext context, UIComponent component) Invoke theNavigationHandler
preemptively to resolve aNavigationCase
for the outcome declared on theUIOutcomeTarget
component.protected boolean
HtmlBasicRenderer.isBehaviorSource
(FacesContext ctx, String behaviorSourceId, String componentClientId) protected boolean
SelectManyCheckboxListRenderer.isBehaviorSource
(FacesContext ctx, String behaviorSourceId, String componentClientId) We override isBehaviorSource since the ID of the activated check box will have been augmented with the option number.protected boolean
RadioRenderer.isChecked
(FacesContext context, UISelectOne radio, Object itemValue) protected boolean
MenuRenderer.isSelected
(FacesContext context, UIComponent component, Object itemValue, Object valueArray, Converter<?> converter) protected void
CommandLinkRenderer.renderAsActive
(FacesContext context, UIComponent command) protected abstract void
LinkRenderer.renderAsActive
(FacesContext context, UIComponent component) protected void
OutcomeTargetLinkRenderer.renderAsActive
(FacesContext context, NavigationCase navCase, UIComponent component) protected void
OutputLinkRenderer.renderAsActive
(FacesContext context, UIComponent component) protected void
LinkRenderer.renderAsDisabled
(FacesContext context, UIComponent component) protected void
OutcomeTargetLinkRenderer.renderAsDisabled
(FacesContext context, UIComponent component, boolean failedToResolveNavigationCase) protected void
SelectManyCheckboxListRenderer.renderBeginText
(UIComponent component, int border, Boolean newTableRow, FacesContext context, boolean outerElement) protected void
BaseTableRenderer.renderCaption
(FacesContext context, UIComponent table, ResponseWriter writer) Renders the caption of the table applying the values ofcaptionClass
as the class andcaptionStyle
as the style if either are present.protected void
TableRenderer.renderColumnGroups
(FacesContext context, UIComponent table) protected void
SelectManyCheckboxListRenderer.renderEndText
(UIComponent component, Boolean newTableRow, FacesContext context) protected void
HtmlBasicRenderer.rendererParamsNotNull
(FacesContext context, UIComponent component) protected abstract void
BaseTableRenderer.renderFooter
(FacesContext context, UIComponent table, ResponseWriter writer) Called to render the opening/closingtfoot
elements and any content nested between.protected void
GridRenderer.renderFooter
(FacesContext context, UIComponent table, ResponseWriter writer) protected void
TableRenderer.renderFooter
(FacesContext context, UIComponent table, ResponseWriter writer) protected abstract void
BaseTableRenderer.renderHeader
(FacesContext context, UIComponent table, ResponseWriter writer) Called to render the opening/closingthead
elements and any content nested between.protected void
GridRenderer.renderHeader
(FacesContext context, UIComponent table, ResponseWriter writer) protected void
TableRenderer.renderHeader
(FacesContext context, UIComponent table, ResponseWriter writer) protected void
RadioRenderer.renderInput
(FacesContext context, ResponseWriter writer, UIComponent component, String clientId, Object itemValue, Converter<?> converter, boolean checked, boolean disabled, RadioRenderer.Group group) protected boolean
MenuRenderer.renderOption
(FacesContext context, UIComponent component, UIComponent selectComponent, Converter<?> converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, HtmlBasicRenderer.OptionComponentInfo optionInfo) protected void
RadioRenderer.renderOption
(FacesContext context, UIComponent component, Converter converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, Boolean newTableRow, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo) protected void
SelectManyCheckboxListRenderer.renderOption
(FacesContext context, UIComponent component, Converter converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, Boolean newTableRow, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo) protected int
MenuRenderer.renderOptions
(FacesContext context, UIComponent component, SelectItemsIterator<SelectItem> items) protected void
OutcomeTargetRenderer.renderPassThruAttributes
(FacesContext ctx, ResponseWriter writer, UIComponent component, Attribute[] attributes, List excludedAttributes) protected abstract void
BaseTableRenderer.renderRow
(FacesContext context, UIComponent table, UIComponent row, ResponseWriter writer) Call to render the content that should be included between opening and closingtr
elements.protected void
GridRenderer.renderRow
(FacesContext context, UIComponent table, UIComponent child, ResponseWriter writer) protected void
TableRenderer.renderRow
(FacesContext context, UIComponent table, UIComponent child, ResponseWriter writer) protected void
BaseTableRenderer.renderRowEnd
(FacesContext context, UIComponent table, ResponseWriter writer) Renders the closingrt
element.protected void
BaseTableRenderer.renderRowStart
(FacesContext context, UIComponent table, ResponseWriter writer) Renders the startingtr
element applying any values from therowClasses
attribute.protected void
MenuRenderer.renderSelect
(FacesContext context, UIComponent component) protected void
BaseTableRenderer.renderTableBodyEnd
(FacesContext context, UIComponent table, ResponseWriter writer) Renders the closingtbody
element.protected void
BaseTableRenderer.renderTableBodyStart
(FacesContext context, UIComponent table, ResponseWriter writer) Renders the startingtbody
element.protected void
BaseTableRenderer.renderTableEnd
(FacesContext context, UIComponent table, ResponseWriter writer) Renders the closingtable
element.protected void
BaseTableRenderer.renderTableStart
(FacesContext context, UIComponent table, ResponseWriter writer, Attribute[] attributes) Renders the start of a table and applies the value ofstyleClass
if available and renders any pass through attributes that may be specified.protected void
ScriptRenderer.startExternalElement
(FacesContext context, ResponseWriter writer, UIComponent component) protected abstract void
ScriptStyleBaseRenderer.startExternalElement
(FacesContext context, ResponseWriter writer, UIComponent component) Allow the subclass to customize the start external element content.protected void
StylesheetRenderer.startExternalElement
(FacesContext context, ResponseWriter writer, UIComponent component) protected void
ScriptRenderer.startInlineElement
(FacesContext context, ResponseWriter writer, UIComponent component) protected abstract void
ScriptStyleBaseRenderer.startInlineElement
(FacesContext context, ResponseWriter writer, UIComponent component) Allow the subclass to customize the start inline element content.protected void
StylesheetRenderer.startInlineElement
(FacesContext context, ResponseWriter writer, UIComponent component) protected void
OutcomeTargetLinkRenderer.writeIdAndNameAttributes
(FacesContext context, ResponseWriter writer, UIComponent component) protected String
HtmlBasicRenderer.writeIdAttributeIfNecessary
(FacesContext context, ResponseWriter writer, UIComponent component) -
Uses of FacesContext in com.sun.faces.util
Modifier and TypeMethodDescriptionstatic void
Util.checkIdUniqueness
(FacesContext context, UIComponent component, Set<String> componentIds) Utility method to validate ID uniqueness for the tree represented bycomponent
.static void
RequestStateManager.clearAttributesOnChangeOfView
(FacesContext ctx) Remove all request state attributes associated that need to be cleared on change of view.static List
<SelectItem> SelectItemUtils.collectSelectItems
(FacesContext context, UIComponent component) static boolean
RequestStateManager.containsKey
(FacesContext ctx, String key) static <S extends SelectItem>
voidSelectItemUtils.createSelectItems
(FacesContext context, UIComponent component, Object values, Supplier<S> supplier, Consumer<S> callback) static String
Util.generateCreatedBy
(FacesContext facesContext) static <T> T
RequestStateManager.get
(FacesContext ctx, String key) static Validator
BeanValidation.getBeanValidator
(FacesContext context) static ELAwareBeanManager
Util.getCdiBeanManager
(FacesContext facesContext) Get the CDI bean manager.static String
Util.getClientWindowId
(FacesContext context) static Converter
Util.getConverterForClass
(Class converterClass, FacesContext context) static Converter
Util.getConverterForIdentifer
(String converterId, FacesContext context) static Doctype
Util.getDOCTYPEFromFacesContextAttributes
(FacesContext context) static String
Util.getFacesConfigXmlVersion
(FacesContext facesContext) Get the faces-config.xml version (if any).static HttpServletMapping
Util.getFacesMapping
(FacesContext context) Returns the URL pattern of theFacesServlet
that is executing the current request.static Optional
<ServletRegistration> Util.getFacesServletRegistration
(FacesContext context) static Object
MessageFactory.getLabel
(FacesContext context, UIComponent component) Returns thelabel
property from the specified component.static Locale
Util.getLocaleFromContextOrSystem
(FacesContext context) static FacesMessage
MessageFactory.getMessage
(FacesContext context, String messageId, FacesMessage.Severity severity, Object... params) static FacesMessage
MessageFactory.getMessage
(FacesContext context, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.static String
Util.getNamingContainerPrefix
(FacesContext context) If view root is instance of naming container, return its container client id, suffixed with separator character.static StateManager
Util.getStateManager
(FacesContext context) RequestStateManager.getStateMap
(FacesContext ctx) static ValidatorFactory
BeanValidation.getValidatorFactory
(FacesContext context) static ViewHandler
Util.getViewHandler
(FacesContext context) static String
Util.getViewStateId
(FacesContext context) static String
Util.getWebXmlVersion
(FacesContext facesContext) Get the web.xml version (if any).static String
Util.getXMLDECLFromFacesContextAttributes
(FacesContext context) FacesLogger.interpolateMessage
(FacesContext context, String messageId, Object[] params) static boolean
Util.isNestedInIterator
(FacesContext context, UIComponent component) static boolean
Util.isPortletRequest
(FacesContext context) Convenience method for determining if the request associated with the specifiedFacesContext
is a PortletRequest submitted by the JSR-301 bridge.static boolean
Util.isViewPopulated
(FacesContext ctx, UIViewRoot viewToRender) static Object
RequestStateManager.remove
(FacesContext ctx, String key) Remove the value associated with the specified key.void
ComponentStruct.restoreState
(FacesContext ctx, Object state) ComponentStruct.saveState
(FacesContext ctx) static void
RequestStateManager.set
(FacesContext ctx, String key, Object value) Adds the specified key and value to the Map stored in the request.static void
Util.setViewPopulated
(FacesContext ctx, UIViewRoot viewToRender) Flag the specifiedUIViewRoot
as populated.ModifierConstructorDescriptionScopedRunner
(FacesContext context) ScopedRunner
(FacesContext context, Map<String, Object> scopedVariables) -
Uses of FacesContext in com.sun.faces.util.copier
Modifier and TypeMethodDescriptionstatic Copier
CopierUtils.getCopier
(FacesContext context, String copierType) -
Uses of FacesContext in jakarta.faces.application
Modifier and TypeMethodDescriptionViewHandler.calculateCharacterEncoding
(FacesContext context) Returns the correct character encoding to be used for this request.ViewHandlerWrapper.calculateCharacterEncoding
(FacesContext context) The default behavior of this method is to callViewHandler.calculateCharacterEncoding(jakarta.faces.context.FacesContext)
on the wrappedViewHandler
object.abstract Locale
ViewHandler.calculateLocale
(FacesContext context) Returns an appropriateLocale
to use for this and subsequent requests for the current client.ViewHandlerWrapper.calculateLocale
(FacesContext context) The default behavior of this method is to callViewHandler.calculateLocale(jakarta.faces.context.FacesContext)
on the wrappedViewHandler
object.abstract String
ViewHandler.calculateRenderKitId
(FacesContext context) Return an appropriaterenderKitId
for this and subsequent requests from the current client.ViewHandlerWrapper.calculateRenderKitId
(FacesContext context) The default behavior of this method is to callViewHandler.calculateRenderKitId(jakarta.faces.context.FacesContext)
on the wrappedViewHandler
object.Application.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType) Application.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) LikeApplication.createComponent(ValueExpression, FacesContext, String)
except theRenderer
for the component to be returned must be inspected for the annotations mentioned inApplication.createComponent(ValueExpression, FacesContext, String)
as specified in the documentation for that method.Application.createComponent
(FacesContext context, Resource componentResource) Application.createComponent
(FacesContext context, String componentType, String rendererType) LikeApplication.createComponent(String)
except theRenderer
for the component to be returned must be inspected for the annotations mentioned inApplication.createComponent(ValueExpression, FacesContext, String)
as specified in the documentation for that method.ApplicationWrapper.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType) The default behavior of this method is to callApplication.createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String)
on the wrappedApplication
object.ApplicationWrapper.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) The default behavior of this method is to callApplication.createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String, String)
on the wrappedApplication
object.ApplicationWrapper.createComponent
(FacesContext context, Resource componentResource) The default behavior of this method is to callApplication.createComponent(jakarta.faces.context.FacesContext, Resource)
on the wrappedApplication
object.ApplicationWrapper.createComponent
(FacesContext context, String componentType, String rendererType) The default behavior of this method is to callApplication.createComponent(jakarta.faces.context.FacesContext, String, String)
on the wrappedApplication
object.abstract UIViewRoot
ViewHandler.createView
(FacesContext context, String viewId) Create and return a newUIViewRoot
instance initialized with information from the argumentFacesContext
andviewId
.ViewHandlerWrapper.createView
(FacesContext context, String viewId) The default behavior of this method is to callViewHandler.createView(jakarta.faces.context.FacesContext, String)
on the wrappedViewHandler
object.ResourceHandler.createViewResource
(FacesContext context, String resourceName) Create an instance ofResource
given the argumentresourceName
, which may contain "/" characters.ResourceHandlerWrapper.createViewResource
(FacesContext context, String resourceName) The default behavior of this method is to callResourceHandler.createViewResource(jakarta.faces.context.FacesContext, java.lang.String)
on the wrappedResourceHandler
object.ViewHandler.deriveLogicalViewId
(FacesContext context, String requestViewId) Derive and return the viewId from the current request, or the argument input by following the algorithm defined in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta Faces Specification Document.ViewHandlerWrapper.deriveLogicalViewId
(FacesContext context, String requestViewId) The default behavior of this method is to callViewHandler.deriveLogicalViewId(jakarta.faces.context.FacesContext, String)
on the wrappedViewHandler
object.ViewHandler.deriveViewId
(FacesContext context, String requestViewId) Derive and return the viewId from the current request, or the argument input by following the algorithm defined in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta Faces Specification Document.ViewHandlerWrapper.deriveViewId
(FacesContext context, String requestViewId) The default behavior of this method is to callViewHandler.deriveViewId(jakarta.faces.context.FacesContext, String)
on the wrappedViewHandler
object.<T> T
Application.evaluateExpressionGet
(FacesContext context, String expression, Class<? extends T> expectedType) Get a value by evaluating an expression.<T> T
ApplicationWrapper.evaluateExpressionGet
(FacesContext context, String expression, Class<? extends T> expectedType) The default behavior of this method is to callApplication.evaluateExpressionGet(jakarta.faces.context.FacesContext, String, Class)
on the wrappedApplication
object.NavigationCase.getActionURL
(FacesContext context) Construct an absolute URL to thisNavigationCase
instance usingViewHandler.getActionURL(jakarta.faces.context.FacesContext, java.lang.String)
on the path portion of the url.NavigationCaseWrapper.getActionURL
(FacesContext context) abstract String
ViewHandler.getActionURL
(FacesContext context, String viewId) If the value returned from this method is used as thefile
argument to the four-argument constructor forjava.net.URL
(assuming appropriate values are used for the first three arguments), then a client making a request to thetoExternalForm()
of thatURL
will select the argumentviewId
for traversing the Jakarta Faces lifecycle.ViewHandlerWrapper.getActionURL
(FacesContext context, String viewId) The default behavior of this method is to callViewHandler.getActionURL(jakarta.faces.context.FacesContext, String)
on the wrappedViewHandler
object.NavigationCase.getBookmarkableURL
(FacesContext context) Construct an absolute URL suitable for a bookmarkable link to thisNavigationCase
instance usingViewHandler.getBookmarkableURL(jakarta.faces.context.FacesContext, java.lang.String, java.util.Map<java.lang.String, java.util.List<java.lang.String>>, boolean)
on the path portion of the url.NavigationCaseWrapper.getBookmarkableURL
(FacesContext context) ViewHandler.getBookmarkableURL
(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams) Return a Jakarta Faces action URL derived from the viewId argument that is suitable to be used as the target of a link in a Jakarta Faces response.ViewHandlerWrapper.getBookmarkableURL
(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams) The default behavior of this method is to callViewHandler.getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean)
on the wrappedViewHandler
object.NavigationCase.getCondition
(FacesContext context) Evaluates the<if>
for this<navigation-case>
, if any.NavigationCaseWrapper.getCondition
(FacesContext context) abstract NavigationCase
ConfigurableNavigationHandler.getNavigationCase
(FacesContext context, String fromAction, String outcome) Return theNavigationCase
representing the navigation that would be taken hadNavigationHandler.handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String)
been called with the same arguments ornull
if there is no such case.ConfigurableNavigationHandler.getNavigationCase
(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) Return theNavigationCase
representing the navigation that would be taken hadNavigationHandler.handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String)
been called with the same arguments ornull
if there is no such case.ConfigurableNavigationHandlerWrapper.getNavigationCase
(FacesContext context, String fromAction, String outcome) ConfigurableNavigationHandlerWrapper.getNavigationCase
(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) NavigationCase.getRedirectURL
(FacesContext context) Construct an absolute URL suitable for a "redirect" to thisNavigationCase
instance usingViewHandler.getRedirectURL(jakarta.faces.context.FacesContext, java.lang.String, java.util.Map<java.lang.String, java.util.List<java.lang.String>>, boolean)
on the path portion of the url.NavigationCaseWrapper.getRedirectURL
(FacesContext context) ViewHandler.getRedirectURL
(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams) Return a Jakarta Faces action URL derived from theviewId
argument that is suitable to be used by theNavigationHandler
to issue a redirect request to the URL using a NonFaces request.ViewHandlerWrapper.getRedirectURL
(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams) The default behavior of this method is to callViewHandler.getRedirectURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean)
on the wrappedViewHandler
object.Application.getResourceBundle
(FacesContext ctx, String name) Find aResourceBundle
as defined in the application configuration resources under the specified name.ApplicationWrapper.getResourceBundle
(FacesContext ctx, String name) The default behavior of this method is to callApplication.getResourceBundle(jakarta.faces.context.FacesContext, String)
on the wrappedApplication
object.NavigationCase.getResourceURL
(FacesContext context) Construct an absolute URL to thisNavigationCase
instance usingViewHandler.getResourceURL(jakarta.faces.context.FacesContext, java.lang.String)
on the path portion of the url.NavigationCaseWrapper.getResourceURL
(FacesContext context) abstract String
ViewHandler.getResourceURL
(FacesContext context, String path) If the value returned from this method is used as thefile
argument to the four-argument constructor forjava.net.URL
(assuming appropriate values are used for the first three arguments), then a client making a request to thetoExternalForm()
of thatURL
will select the argumentpath
for direct rendering.ViewHandlerWrapper.getResourceURL
(FacesContext context, String path) The default behavior of this method is to callViewHandler.getResourceURL(jakarta.faces.context.FacesContext, String)
on the wrappedViewHandler
object.NavigationCase.getToViewId
(FacesContext context) Evaluates the<to-view-id>
for this<navigation-case>
NavigationCaseWrapper.getToViewId
(FacesContext context) ViewHandler.getViewDeclarationLanguage
(FacesContext context, String viewId) ViewHandlerWrapper.getViewDeclarationLanguage
(FacesContext context, String viewId) The default behavior of this method is to callViewHandler.getViewDeclarationLanguage(jakarta.faces.context.FacesContext, java.lang.String)
on the wrappedViewHandler
object.ResourceHandler.getViewResources
(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) Return aStream
possibly lazily populated by walking the resource tree rooted at a given initial path.ResourceHandler.getViewResources
(FacesContext facesContext, String path, ResourceVisitOption... options) Return aStream
possibly lazily populated by walking the resource tree rooted at a given initial path.ResourceHandlerWrapper.getViewResources
(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) The default behavior of this method is to callResourceHandler.getViewResources(FacesContext, String, int, ResourceVisitOption...)
on the wrappedResourceHandler
object.ResourceHandlerWrapper.getViewResources
(FacesContext facesContext, String path, ResourceVisitOption... options) The default behavior of this method is to callResourceHandler.getViewResources(FacesContext, String, ResourceVisitOption...)
on the wrappedResourceHandler
object.ViewHandler.getViews
(FacesContext facesContext, String path, int maxDepth, ViewVisitOption... options) Return aStream
possibly lazily populated by walking the view trees of every activeViewDeclarationLanguage
rooted at a given initial path.ViewHandler.getViews
(FacesContext facesContext, String path, ViewVisitOption... options) Return aStream
possibly lazily populated by walking the view trees of every activeViewDeclarationLanguage
rooted at a given initial path.ViewHandlerWrapper.getViews
(FacesContext context, String path, int maxDepth, ViewVisitOption... options) The default behavior of this method is to callViewHandler.getViews(FacesContext, String, int, ViewVisitOption...)
on the wrappedViewHandler
object.ViewHandlerWrapper.getViews
(FacesContext context, String path, ViewVisitOption... options) The default behavior of this method is to callViewHandler.getViews(FacesContext, String, ViewVisitOption...)
on the wrappedViewHandler
object.StateManager.getViewState
(FacesContext context) Convenience method to return the view state as aString
with noRenderKit
specific markup.StateManagerWrapper.getViewState
(FacesContext context) The default behavior of this method is to callStateManager.getViewState(jakarta.faces.context.FacesContext)
on the wrappedStateManager
object.abstract String
ViewHandler.getWebsocketURL
(FacesContext context, String channel) If the value returned from this method is used as thefile
argument to the four-argument constructor forjava.net.URL
(assuming appropriate values are used for the first three arguments), then a client making a push handshake request to thetoExternalForm()
of thatURL
will select the argumentchannel
for connecting the websocket push channel in the current view.ViewHandlerWrapper.getWebsocketURL
(FacesContext context, String channel) The default behavior of this method is to callViewHandler.getWebsocketURL(FacesContext, String)
on the wrappedViewHandler
object.void
ConfigurableNavigationHandlerWrapper.handleNavigation
(FacesContext context, String fromAction, String outcome) abstract void
NavigationHandler.handleNavigation
(FacesContext context, String fromAction, String outcome) Perform navigation processing based on the state information in the specifiedFacesContext
, plus the outcome string returned by an executed application action.void
NavigationHandler.handleNavigation
(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) Overloaded variant ofNavigationHandler.handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String)
that allows the caller to provide the defining document id for a flow to be entered by this navigation.void
NavigationHandlerWrapper.handleNavigation
(FacesContext context, String fromAction, String outcome) void
NavigationHandlerWrapper.handleNavigation
(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) abstract void
ResourceHandler.handleResourceRequest
(FacesContext context) This method specifies the contract for satisfying resource requests.void
ResourceHandlerWrapper.handleResourceRequest
(FacesContext context) The default behavior of this method is to callResourceHandler.handleResourceRequest(jakarta.faces.context.FacesContext)
on the wrappedResourceHandler
object.void
ViewHandler.initView
(FacesContext context) Initialize the view for the request processing lifecycle.void
ViewHandlerWrapper.initView
(FacesContext context) The default behavior of this method is to callViewHandler.initView(jakarta.faces.context.FacesContext)
on the wrappedViewHandler
object.void
ConfigurableNavigationHandler.inspectFlow
(FacesContext context, Flow flow) Called by the flow system to cause the flow to be inspected for navigation rules.void
ConfigurableNavigationHandlerWrapper.inspectFlow
(FacesContext context, Flow flow) boolean
ResourceHandler.isResourceRendered
(FacesContext context, String resourceName, String libraryName) Returns whether the resource as identified by given resource and library name has been rendered.boolean
ResourceHandlerWrapper.isResourceRendered
(FacesContext context, String resourceName, String libraryName) The default behavior of this method is to callResourceHandler.isResourceRendered(FacesContext, String, String)
on the wrappedResourceHandler
object.abstract boolean
ResourceHandler.isResourceRequest
(FacesContext context) Returntrue
if the current request is a resource request.boolean
ResourceHandlerWrapper.isResourceRequest
(FacesContext context) The default behavior of this method is to callResourceHandler.isResourceRequest(jakarta.faces.context.FacesContext)
on the wrappedResourceHandler
object.boolean
StateManager.isSavingStateInClient
(FacesContext context) Method to determine if the state is saved on the client.boolean
StateManagerWrapper.isSavingStateInClient
(FacesContext context) The default behavior of this method is to callStateManager.isSavingStateInClient(jakarta.faces.context.FacesContext)
on the wrappedStateManager
object.void
ResourceHandler.markResourceRendered
(FacesContext context, String resourceName, String libraryName) Mark the resource as identified by given resource and library name as rendered.void
ResourceHandlerWrapper.markResourceRendered
(FacesContext context, String resourceName, String libraryName) The default behavior of this method is to callResourceHandler.markResourceRendered(FacesContext, String, String)
on the wrappedResourceHandler
object.void
Application.publishEvent
(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) This method functions exactly likeApplication.publishEvent(FacesContext,Class,Object)
, except the run-time must use the argumentsourceBaseType
to find the matching listener instead of using theClass
of thesource
argument.void
Application.publishEvent
(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source) IfisProcessingEvents()
istrue
and there are one or more listeners for events of the type represented bysystemEventClass
, call those listeners, passingsource
as the source of the event.void
ApplicationWrapper.publishEvent
(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) The default behavior of this method is to callApplication.publishEvent(jakarta.faces.context.FacesContext, Class, Class, Object)
on the wrappedApplication
object.void
ApplicationWrapper.publishEvent
(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source) The default behavior of this method is to callApplication.publishEvent(jakarta.faces.context.FacesContext, Class, Object)
on the wrappedApplication
object.abstract void
ViewHandler.renderView
(FacesContext context, UIViewRoot viewToRender) Perform whatever actions are required to render the response view to the response object associated with the currentFacesContext
.void
ViewHandlerWrapper.renderView
(FacesContext context, UIViewRoot viewToRender) The default behavior of this method is to callViewHandler.renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot)
on the wrappedViewHandler
object.abstract UIViewRoot
ViewHandler.restoreView
(FacesContext context, String viewId) Perform whatever actions are required to restore the view associated with the specifiedFacesContext
andviewId
.ViewHandlerWrapper.restoreView
(FacesContext context, String viewId) The default behavior of this method is to callViewHandler.restoreView(jakarta.faces.context.FacesContext, String)
on the wrappedViewHandler
object.abstract boolean
Resource.userAgentNeedsUpdate
(FacesContext context) Returntrue
if the user-agent requesting this resource needs an update.boolean
ResourceWrapper.userAgentNeedsUpdate
(FacesContext context) The default behavior of this method is to callResource.userAgentNeedsUpdate(jakarta.faces.context.FacesContext)
on the wrappedResourceHandler
object.void
StateManager.writeState
(FacesContext context, Object state) Save the state represented in the specified stateObject
instance, in an implementation dependent manner.void
StateManagerWrapper.writeState
(FacesContext context, Object state) The default behavior of this method is to callStateManager.writeState(jakarta.faces.context.FacesContext, java.lang.Object)
on the wrappedStateManager
object.abstract void
ViewHandler.writeState
(FacesContext context) Take any appropriate action to either immediately write out the current state information (by callingStateManager.writeState(jakarta.faces.context.FacesContext, java.lang.Object)
, or noting where state information should later be written.void
ViewHandlerWrapper.writeState
(FacesContext context) The default behavior of this method is to callViewHandler.writeState(jakarta.faces.context.FacesContext)
on the wrappedViewHandler
object. -
Uses of FacesContext in jakarta.faces.component
Modifier and TypeMethodDescriptionprotected abstract FacesContext
UIComponent.getFacesContext()
Convenience method to return theFacesContext
instance for the current request.protected FacesContext
UIComponentBase.getFacesContext()
Modifier and TypeMethodDescriptionvoid
UIViewRoot.addComponentResource
(FacesContext context, UIComponent componentResource) Add argumentcomponent
, which is assumed to represent a resource instance, as a resource to this view.void
UIViewRoot.addComponentResource
(FacesContext context, UIComponent componentResource, String target) Add argumentcomponent
, which is assumed to represent a resource instance, as a resource to this view.void
UIViewRoot.broadcastEvents
(FacesContext context, PhaseId phaseId) Broadcast any events that have been queued.UIData.createUniqueId
(FacesContext context, String seed) UIForm.createUniqueId
(FacesContext context, String seed) Generate an identifier for a component.UINamingContainer.createUniqueId
(FacesContext context, String seed) UIViewRoot.createUniqueId
(FacesContext context, String seed) Generate an identifier for a component.UniqueIdVendor.createUniqueId
(FacesContext context, String seed) Generate an identifier for a component.abstract void
UIComponent.decode
(FacesContext context) Decode any new state of thisUIComponent
from the request contained in the specifiedFacesContext
, and store this state as needed.void
UIComponentBase.decode
(FacesContext context) void
UIInput.decode
(FacesContext context) void
UIViewAction.decode
(FacesContext context) Override behavior from the superclass to queue anActionEvent
that may result in the invocation of theaction
or anyactionListener
s that may be associated with this instance.void
UIViewParameter.decode
(FacesContext context) Override behavior from superclass to pull a value from the incoming request parameter map under the name given byUIViewParameter.getName()
and store it with a call toUIInput.setSubmittedValue(java.lang.Object)
.void
UIComponent.encodeAll
(FacesContext context) If this component returnstrue
fromUIComponent.isRendered()
, take the following action.void
UIViewParameter.encodeAll
(FacesContext context) Called specially byUIViewRoot.encodeEnd(jakarta.faces.context.FacesContext)
, this method simply sets the submitted value to be the return fromUIViewParameter.getStringValue(jakarta.faces.context.FacesContext)
.abstract void
UIComponent.encodeBegin
(FacesContext context) If ourrendered
property istrue
, render the beginning of the current state of thisUIComponent
to the response contained in the specifiedFacesContext
.void
UIComponentBase.encodeBegin
(FacesContext context) void
UIData.encodeBegin
(FacesContext context) In addition to the default behavior, ensure that any saved per-row state for our child input components is discarded unless it is needed to rerender the current page with errors.void
UIViewRoot.encodeBegin
(FacesContext context) Override the defaultUIComponentBase.encodeBegin(jakarta.faces.context.FacesContext)
behavior.abstract void
UIComponent.encodeChildren
(FacesContext context) void
UIComponentBase.encodeChildren
(FacesContext context) void
UIViewRoot.encodeChildren
(FacesContext context) IfPartialViewContext.isAjaxRequest()
returnstrue
, perform partial rendering by callingPartialViewContext.processPartial(jakarta.faces.event.PhaseId)
withPhaseId.RENDER_RESPONSE
.abstract void
UIComponent.encodeEnd
(FacesContext context) void
UIComponentBase.encodeEnd
(FacesContext context) void
UIViewRoot.encodeEnd
(FacesContext context) IfUIViewRoot.getAfterPhaseListener()
returns non-null
, invoke it, passing aPhaseEvent
for thePhaseId.RENDER_RESPONSE
phase.abstract String
UIComponent.getClientId
(FacesContext context) Return a client-side identifier for this component, generating one if necessary.UIComponentBase.getClientId
(FacesContext context) UIData.getClientId
(FacesContext context) Return a client identifier for this component that includes the current value of therowIndex
property, if it is not set to -1.UIViewRoot.getComponentResources
(FacesContext context) Return an unmodifiable orderedList
of allUIComponent
resources of all supported targets.UIViewRoot.getComponentResources
(FacesContext context, String target) UIComponent.getContainerClientId
(FacesContext context) Allow components that implementNamingContainer
to selectively disable prepending their clientId to their descendent's clientIds by breaking the prepending logic into a separately callable method.UIForm.getContainerClientId
(FacesContext context) Override theUIComponent.getContainerClientId(jakarta.faces.context.FacesContext)
to allow users to disable this form from prepending itsclientId
to its descendent'sclientIds
depending on the value of this form'sUIForm.isPrependId()
property.protected Object
UIInput.getConvertedValue
(FacesContext context, Object newSubmittedValue) Convert the submitted value into a "local value" of the appropriate data type, if necessary.protected Object
UIViewParameter.getConvertedValue
(FacesContext context, Object submittedValue) Because this class has noRenderer
, leverage the one from the standard HTML_BASICRenderKit
withcomponent-family: jakarta.faces.Input
andrenderer-type: jakarta.faces.Text
and call itsRenderer.getConvertedValue(jakarta.faces.context.FacesContext, T, java.lang.Object)
method.static UIComponent
UIComponent.getCurrentComponent
(FacesContext context) Return theUIComponent
instance that is currently processing.static UIComponent
UIComponent.getCurrentCompositeComponent
(FacesContext context) Return the closest ancestor component, relative to the component returned fromUIComponent.getCurrentComponent(jakarta.faces.context.FacesContext)
, that is a composite component, ornull
if no such component exists.protected abstract Renderer
UIComponent.getRenderer
(FacesContext context) Convenience method to return theRenderer
instance associated with this component, if any; otherwise, returnnull
.protected Renderer
UIComponentBase.getRenderer
(FacesContext context) static char
UINamingContainer.getSeparatorChar
(FacesContext context) Return the character used to separate segments of a clientId.UIViewParameter.getStringValue
(FacesContext context) If the value of this parameter comes from aValueExpression
return the value of the expression, otherwise, return the local value.UIViewParameter.getStringValueFromModel
(FacesContext context) Manually perform standard conversion steps to get a string value from the value expression.UIViewParameter.Reference.getUIViewParameter
(FacesContext context) Return theUIViewParameter
to which this instance refers.void
ContextCallback.invokeContextCallback
(FacesContext context, UIComponent target) This method will be called by an implementation ofUIComponent.invokeOnComponent(jakarta.faces.context.FacesContext, java.lang.String, jakarta.faces.component.ContextCallback)
and must be passed the component with theclientId
given as an argument toinvokeOnComponent
.boolean
UIComponent.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) Starting at this component in the View hierarchy, search for a component with aclientId
equal to the argumentclientId
and, if found, call theContextCallback.invokeContextCallback(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
method on the argumentcallback
, passing the currentFacesContext
and the found component as arguments.boolean
UIComponentBase.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) Starting at this component in the View hierarchy, search for a component with aclientId
equal to the argumentclientId
and, if found, call theContextCallback.invokeContextCallback(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
method on the argumentcallback
, passing the currentFacesContext
and the found component as arguments.boolean
UIData.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) Override behavior fromUIComponentBase.invokeOnComponent(jakarta.faces.context.FacesContext, java.lang.String, jakarta.faces.component.ContextCallback)
to provide special care for positioning the data properly before finding the component and invoking the callback on it.boolean
UIForm.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) static boolean
UIViewAction.isProcessingBroadcast
(FacesContext context) Returnstrue
if the current request processing lifecycle is in the midst of processing the broadcast of an event queued during a call toUIViewAction.decode(jakarta.faces.context.FacesContext)
.void
UIComponent.popComponentFromEL
(FacesContext context) Pop the currentUIComponent
from theFacesContext
attributes map so that the previousUIComponent
, if any, becomes the current component.void
UIViewRoot.processApplication
(FacesContext context) Broadcast any events that have been queued for the Invoke Application phase of the request processing lifecycle and to clear out any events for later phases if the event processing for this phase causedrenderResponse()
orresponseComplete()
to be called.abstract void
UIComponent.processDecodes
(FacesContext context) Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows.void
UIComponentBase.processDecodes
(FacesContext context) void
UIData.processDecodes
(FacesContext context) Override the defaultUIComponentBase.processDecodes(jakarta.faces.context.FacesContext)
processing to perform the following steps.void
UIForm.processDecodes
(FacesContext context) OverrideUIComponent.processDecodes(jakarta.faces.context.FacesContext)
to ensure that the form is decoded before its children.void
UIInput.processDecodes
(FacesContext context) Specialized decode behavior on top of that provided by the superclass.void
UIViewRoot.processDecodes
(FacesContext context) abstract void
UIComponent.processRestoreState
(FacesContext context, Object state) Perform the component tree processing required by the Restore View phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows.void
UIComponentBase.processRestoreState
(FacesContext context, Object state) void
UIViewRoot.processRestoreState
(FacesContext context, Object state) The default implementation must callUIComponentBase.processRestoreState(jakarta.faces.context.FacesContext, java.lang.Object)
from within atry
block.abstract Object
UIComponent.processSaveState
(FacesContext context) Perform the component tree processing required by the state saving portion of the Render Response phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows.UIComponentBase.processSaveState
(FacesContext context) abstract void
UIComponent.processUpdates
(FacesContext context) Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows.void
UIComponentBase.processUpdates
(FacesContext context) void
UIData.processUpdates
(FacesContext context) Override the defaultUIComponentBase.processUpdates(jakarta.faces.context.FacesContext)
processing to perform the following steps.void
UIForm.processUpdates
(FacesContext context) OverrideUIComponent.processUpdates(jakarta.faces.context.FacesContext)
to ensure that the children of thisUIForm
instance are only processed ifUIForm.isSubmitted()
returnstrue
.void
UIInput.processUpdates
(FacesContext context) In addition to the standardprocessUpdates
behavior inherited fromUIComponentBase
, callsupdateModel()
.void
UIViewRoot.processUpdates
(FacesContext context) abstract void
UIComponent.processValidators
(FacesContext context) Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows.void
UIComponentBase.processValidators
(FacesContext context) void
UIData.processValidators
(FacesContext context) Override the defaultUIComponentBase.processValidators(jakarta.faces.context.FacesContext)
processing to perform the following steps.void
UIForm.processValidators
(FacesContext context) OverrideUIComponent.processValidators(jakarta.faces.context.FacesContext)
to ensure that the children of thisUIForm
instance are only processed ifUIForm.isSubmitted()
returnstrue
.void
UIInput.processValidators
(FacesContext context) In addition to the standardprocessValidators
behavior inherited fromUIComponentBase
, callsvalidate()
if theimmediate
property is false (which is the default); if the component is invalid afterwards, callsrenderResponse()
.void
UISelectOne.processValidators
(FacesContext context) IfUISelectOne.getGroup()
is set, andUIInput.getSubmittedValue()
is empty, and at least one other component having the same group within aUIForm
parent has a non-emptyUIInput.getSubmittedValue()
or returnstrue
onUIInput.isLocalValueSet()
or returnsfalse
onUIInput.isValid()
, then skip validation for current component, else perform standard superclass processing bysuper.processValidators(context)
.void
UIViewParameter.processValidators
(FacesContext context) Specialize superclass behavior to treatnull
differently.void
UIViewRoot.processValidators
(FacesContext context) void
UIComponent.pushComponentToEL
(FacesContext context, UIComponent component) Push the currentUIComponent
this
to theFacesContext
attribute map saving the previousUIComponent
for a subsequent call toUIComponent.popComponentFromEL(jakarta.faces.context.FacesContext)
.void
UIViewRoot.removeComponentResource
(FacesContext context, UIComponent componentResource) Remove argumentcomponent
, which is assumed to represent a resource instance, as a resource to this view.void
UIViewRoot.removeComponentResource
(FacesContext context, UIComponent componentResource, String target) Remove argumentcomponent
, which is assumed to represent a resource instance, as a resource to this view.void
UIViewRoot.resetValues
(FacesContext context, Collection<String> clientIds) Visit the clientIds and, if the component is an instance ofEditableValueHolder
, call itsEditableValueHolder.resetValue()
method.static Object
UIComponentBase.restoreAttachedState
(FacesContext context, Object stateObj) This method is called byUIComponent
subclasses that need to restore the objects they saved usingUIComponentBase.saveAttachedState(jakarta.faces.context.FacesContext, java.lang.Object)
.void
StateHolder.restoreState
(FacesContext context, Object state) Perform any processing required to restore the state from the entries in the state Object.void
UIComponentBase.restoreState
(FacesContext context, Object state) void
UIData.restoreState
(FacesContext context, Object state) void
UIInput.restoreState
(FacesContext context, Object state) void
UIOutput.restoreState
(FacesContext context, Object state) void
UIViewRoot.restoreState
(FacesContext context, Object state) void
TransientStateHolder.restoreTransientState
(FacesContext context, Object state) Restore the "transient state" using the object passed as state.void
UIComponent.restoreTransientState
(FacesContext context, Object state) For components that need to support the concept of transient state, this method will restore any state saved on a prior call toUIComponent.saveTransientState(jakarta.faces.context.FacesContext)
.void
UIViewRoot.restoreViewScopeState
(FacesContext context, Object state) Restore ViewScope state.static Object
UIComponentBase.saveAttachedState
(FacesContext context, Object attachedObject) This method is called byUIComponent
subclasses that want to save one or more attached objects.StateHolder.saveState
(FacesContext context) Gets the state of the instance as aSerializable
Object.UIComponentBase.saveState
(FacesContext context) UIData.saveState
(FacesContext context) UIInput.saveState
(FacesContext context) UIOutput.saveState
(FacesContext context) UIViewRoot.saveState
(FacesContext context) TransientStateHolder.saveTransientState
(FacesContext context) Return the object containing related "transient states".UIComponent.saveTransientState
(FacesContext context) For components that need to support the concept of transient state, this method will save any state that is known to be transient in nature.void
UIInput.updateModel
(FacesContext context) Perform the following algorithm to update the model data associated with thisUIInput
, if any, as appropriate.void
UIViewParameter.updateModel
(FacesContext context) Call through to superclassUIInput.updateModel(jakarta.faces.context.FacesContext)
then take the additional action of pushing the value into request scope if and only if the value is not a value expression, is valid, and the local value was set on this lifecycle execution.void
UIInput.validate
(FacesContext context) Perform the following algorithm to validate the local value of thisUIInput
.protected void
UIInput.validateValue
(FacesContext context, Object newValue) Set the "valid" property according to the below algorithm.protected void
UISelectMany.validateValue
(FacesContext context, Object value) In addition to the standard validation behavior inherited fromUIInput
, ensure that any specified values are equal to one of the available options.protected void
UISelectOne.validateValue
(FacesContext context, Object value) In addition to the standard validation behavior inherited fromUIInput
, ensure that any specified value is equal to one of the available options.ModifierConstructorDescriptionReference
(FacesContext context, UIViewParameter param, int indexInParent, String viewIdAtTimeOfConstruction) Construct a reference to aUIViewParameter
. -
Uses of FacesContext in jakarta.faces.component.behavior
Modifier and TypeMethodDescriptionabstract FacesContext
ClientBehaviorContext.getFacesContext()
Returns theFacesContext
for the current request.Modifier and TypeMethodDescriptionstatic ClientBehaviorContext
ClientBehaviorContext.createClientBehaviorContext
(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.Parameter> parameters) Creates a ClientBehaviorContext instance.void
ClientBehavior.decode
(FacesContext context, UIComponent component) Decode any new state of thisClientBehavior
from the request contained in the specifiedFacesContext
.void
ClientBehaviorBase.decode
(FacesContext context, UIComponent component) Default implementation of ofClientBehavior.decode(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
.protected ClientBehaviorRenderer
ClientBehaviorBase.getRenderer
(FacesContext context) Convenience method to return theClientBehaviorRenderer
instance associated with thisClientBehavior
, if any; otherwise, returnnull
.void
AjaxBehavior.restoreState
(FacesContext context, Object state) void
BehaviorBase.restoreState
(FacesContext context, Object state) AjaxBehavior.saveState
(FacesContext context) BehaviorBase.saveState
(FacesContext context) Implementation ofStateHolder.saveState(jakarta.faces.context.FacesContext)
. -
Uses of FacesContext in jakarta.faces.component.search
Modifier and TypeMethodDescriptionabstract FacesContext
SearchExpressionContext.getFacesContext()
Returns the FacesContext for the current request.Modifier and TypeMethodDescriptionstatic SearchExpressionContext
SearchExpressionContext.createSearchExpressionContext
(FacesContext context, UIComponent source) Creates aSearchExpressionContext
instance for use with theSearchExpressionHandler
.static SearchExpressionContext
SearchExpressionContext.createSearchExpressionContext
(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) Creates aSearchExpressionContext
instance for use with theSearchExpressionHandler
.char[]
SearchExpressionHandler.getExpressionSeperatorChars
(FacesContext context) Return the characters used to separate expressions in a series of expressions.char[]
SearchExpressionHandlerWrapper.getExpressionSeperatorChars
(FacesContext context) abstract SearchExpressionContext
SearchExpressionContextFactory.getSearchExpressionContext
(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) Creates aSearchExpressionContext
instance for use with theSearchExpressionHandler
.abstract String[]
SearchExpressionHandler.splitExpressions
(FacesContext context, String expressions) Splits an string, based onSearchExpressionHandler.getExpressionSeperatorChars(jakarta.faces.context.FacesContext)
with possible multiple expressions into an array.String[]
SearchExpressionHandlerWrapper.splitExpressions
(FacesContext context, String expressions) -
Uses of FacesContext in jakarta.faces.component.visit
Modifier and TypeMethodDescriptionabstract FacesContext
VisitContext.getFacesContext()
Returns the FacesContext for the current request.VisitContextWrapper.getFacesContext()
Modifier and TypeMethodDescriptionstatic VisitContext
VisitContext.createVisitContext
(FacesContext context) Creates a VisitContext instance for use withUIComponent.visitTree()
.static VisitContext
VisitContext.createVisitContext
(FacesContext context, Collection<String> ids, Set<VisitHint> hints) Returns a VisitContext instance that is initialized with the specified ids and hintsfor use withUIComponent.visitTree(jakarta.faces.component.visit.VisitContext, jakarta.faces.component.visit.VisitCallback)
.abstract VisitContext
VisitContextFactory.getVisitContext
(FacesContext context, Collection<String> ids, Set<VisitHint> hints) Return a newVisitContext
instance. -
Uses of FacesContext in jakarta.faces.context
Modifier and TypeClassDescriptionclass
Provides a simple implementation ofFacesContext
that can be subclassed by developers wishing to provide specialized behavior to an existingFacesContext
instance.Modifier and TypeMethodDescriptionstatic FacesContext
FacesContext.getCurrentInstance()
Return theFacesContext
instance for the request that is being processed by the current thread.abstract FacesContext
FacesContextFactory.getFacesContext
(Object context, Object request, Object response, Lifecycle lifecycle) Create (if needed) and return aFacesContext
instance that is initialized for the processing of the specified request and response objects, utilizing the specifiedLifecycle
instance, for this web application.FacesContextWrapper.getWrapped()
Modifier and TypeMethodDescriptionabstract void
Flash.doPostPhaseActions
(FacesContext ctx) Called after the execution of every lifecycle phase, this method allows implementations to take the necessary actions to provide the Flash scope contract as it applies to the request procesing lifecycle.void
FlashWrapper.doPostPhaseActions
(FacesContext ctx) The default behavior of this method is to callFlash.doPostPhaseActions(FacesContext)
on the wrappedFlash
object.abstract void
Flash.doPrePhaseActions
(FacesContext ctx) Called before the execution of every lifecycle phase, this method allows implementations to take the necessary actions to provide the Flash scope contract as it applies to the request procesing lifecycle.void
FlashWrapper.doPrePhaseActions
(FacesContext ctx) The default behavior of this method is to callFlash.doPrePhaseActions(FacesContext)
on the wrappedFlash
object.abstract PartialViewContext
PartialViewContextFactory.getPartialViewContext
(FacesContext context) Create (if needed) and return aPartialViewContext
instance that is initialized using the currentFacesContext
instance.protected static void
FacesContext.setCurrentInstance
(FacesContext context) Set theFacesContext
instance for the request that is being processed by the current thread.ModifierConstructorDescriptionFacesContextWrapper
(FacesContext wrapped) If this faces context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. -
Uses of FacesContext in jakarta.faces.convert
Modifier and TypeMethodDescriptionBigDecimalConverter.getAsObject
(FacesContext context, UIComponent component, String value) BigIntegerConverter.getAsObject
(FacesContext context, UIComponent component, String value) BooleanConverter.getAsObject
(FacesContext context, UIComponent component, String value) ByteConverter.getAsObject
(FacesContext context, UIComponent component, String value) CharacterConverter.getAsObject
(FacesContext context, UIComponent component, String value) Converter.getAsObject
(FacesContext context, UIComponent component, String value) Convert the specified string value, which is associated with the specifiedUIComponent
, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle.DateTimeConverter.getAsObject
(FacesContext context, UIComponent component, String value) DoubleConverter.getAsObject
(FacesContext context, UIComponent component, String value) EnumConverter.getAsObject
(FacesContext context, UIComponent component, String value) Convert thevalue
argument to one of the enum constants of the class provided in our constructor.FloatConverter.getAsObject
(FacesContext context, UIComponent component, String value) IntegerConverter.getAsObject
(FacesContext context, UIComponent component, String value) LongConverter.getAsObject
(FacesContext context, UIComponent component, String value) NumberConverter.getAsObject
(FacesContext context, UIComponent component, String value) ShortConverter.getAsObject
(FacesContext context, UIComponent component, String value) UUIDConverter.getAsObject
(FacesContext context, UIComponent component, String value) BigDecimalConverter.getAsString
(FacesContext context, UIComponent component, Object value) BigIntegerConverter.getAsString
(FacesContext context, UIComponent component, Object value) BooleanConverter.getAsString
(FacesContext context, UIComponent component, Object value) ByteConverter.getAsString
(FacesContext context, UIComponent component, Object value) CharacterConverter.getAsString
(FacesContext context, UIComponent component, Object value) Converter.getAsString
(FacesContext context, UIComponent component, T value) Convert the specified model object value, which is associated with the specifiedUIComponent
, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle.DateTimeConverter.getAsString
(FacesContext context, UIComponent component, Object value) DoubleConverter.getAsString
(FacesContext context, UIComponent component, Object value) EnumConverter.getAsString
(FacesContext context, UIComponent component, Object value) Convert the enum constant given by thevalue
argument into a String.FloatConverter.getAsString
(FacesContext context, UIComponent component, Object value) IntegerConverter.getAsString
(FacesContext context, UIComponent component, Object value) LongConverter.getAsString
(FacesContext context, UIComponent component, Object value) NumberConverter.getAsString
(FacesContext context, UIComponent component, Object value) ShortConverter.getAsString
(FacesContext context, UIComponent component, Object value) UUIDConverter.getAsString
(FacesContext context, UIComponent component, UUID value) void
DateTimeConverter.restoreState
(FacesContext context, Object state) void
EnumConverter.restoreState
(FacesContext facesContext, Object object) void
NumberConverter.restoreState
(FacesContext context, Object state) DateTimeConverter.saveState
(FacesContext context) EnumConverter.saveState
(FacesContext facesContext) NumberConverter.saveState
(FacesContext context) -
Uses of FacesContext in jakarta.faces.event
Modifier and TypeMethodDescriptionExceptionQueuedEventContext.getContext()
TheFacesContext
for this request.FacesEvent.getFacesContext()
Get the Faces context.PhaseEvent.getFacesContext()
Return theFacesContext
for the request being processed.SystemEvent.getFacesContext()
Get the Faces context.Modifier and TypeMethodDescriptionvoid
MethodExpressionActionListener.restoreState
(FacesContext context, Object state) BothMethodExpression
instances described in the constructor must be restored.void
MethodExpressionValueChangeListener.restoreState
(FacesContext context, Object state) BothMethodExpression
instances described in the constructor must be restored.MethodExpressionActionListener.saveState
(FacesContext context) BothMethodExpression
instances described in the constructor must be saved.MethodExpressionValueChangeListener.saveState
(FacesContext context) BothMethodExpression
instances described in the constructor must be saved.ModifierConstructorDescriptionActionEvent
(FacesContext facesContext, UIComponent component) Construct a new event object from the Faces context, specified source component and action command.AjaxBehaviorEvent
(FacesContext facesContext, UIComponent component, Behavior behavior) Construct a new event object from the Faces context, specified source component and Ajax behavior.BehaviorEvent
(FacesContext facesContext, UIComponent component, Behavior behavior) Construct a new event object from the Faces context, specified source component and behavior.ComponentSystemEvent
(FacesContext facesContext, UIComponent component) Pass the argumentcomponent
to the superclass constructor.ExceptionQueuedEvent
(FacesContext facesContext, ExceptionQueuedEventContext eventContext) Instantiate a newExceptionQueuedEvent
that indicates the argumentExceptionQueuedEventContext
occurred.ExceptionQueuedEventContext
(FacesContext context, Throwable thrown) Instantiate a newExceptionQueuedEventContext
that indicates the argumentThrowable
just occurred.ExceptionQueuedEventContext
(FacesContext context, Throwable thrown, UIComponent component) Instantiate a newExceptionQueuedEventContext
that indicates the argumentThrowable
just occurred, relevant to the argumentcomponent
.ExceptionQueuedEventContext
(FacesContext context, Throwable thrown, UIComponent component, PhaseId phaseId) Instantiate a newExceptionQueuedEventContext
that indicates the argumentThrowable
just occurred, relevant to the argumentcomponent
, during the lifecycle phasephaseId
.FacesEvent
(FacesContext facesContext, UIComponent component) Construct a new event object from the Faces context and specified source component.PhaseEvent
(FacesContext context, PhaseId phaseId, Lifecycle lifecycle) Construct a new event object from the specified parameters.PostAddToViewEvent
(FacesContext facesContext, UIComponent component) Instantiate a newPostAddToViewEvent
that indicates the argumentcomponent
was just added to the view.PostConstructApplicationEvent
(FacesContext facesContext, Application application) Constructs a newPostConstructApplicationEvent
for this application.PostConstructCustomScopeEvent
(FacesContext facesContext, ScopeContext scopeContext) Deprecated, for removal: This API element is subject to removal in a future version.An instance of this event indicates that the custom scope enclosed within the argumentscopeContext
was just created.PostConstructViewMapEvent
(FacesContext facesContext, UIViewRoot root) Instantiate a newPostConstructViewMapEvent
that indicates the argumentroot
was just associated with its view map.PostKeepFlashValueEvent
(FacesContext facesContext, String key) Instantiate a newPostKeepFlashValueEvent
that indicates the argumentkey
was just kept in the flash.PostPutFlashValueEvent
(FacesContext facesContext, String key) Instantiate a newPostPutFlashValueEvent
that indicates the argumentkey
was just put to the flash.PostRenderViewEvent
(FacesContext facesContext, UIViewRoot root) Instantiate a newPostRenderViewEvent
that indicates the argumentroot
has just been rendered.PostRestoreStateEvent
(FacesContext facesContext, UIComponent component) Instantiate a newPostRestoreStateEvent
that indicates the argumentcomponent
just had its state restored.PostValidateEvent
(FacesContext facesContext, UIComponent component) ConstructorPreClearFlashEvent
(FacesContext facesContext, Map<String, Object> source) Instantiate a newPreClearFlashEvent
that indicates the argumentkey
was just put to the flash.PreDestroyApplicationEvent
(FacesContext facesContext, Application application) Constructs a newPreDestroyApplicationEvent
for this application.PreDestroyCustomScopeEvent
(FacesContext facesContext, ScopeContext scopeContext) Deprecated, for removal: This API element is subject to removal in a future version.An instance of this event indicates that the custom scope enclosed within the argumentscopeContext
is about to end.PreDestroyViewMapEvent
(FacesContext facesContext, UIViewRoot root) Instantiate a newViewMapDestroydEvent
that indicates the argumentroot
just had its associated view map destroyed.PreRemoveFlashValueEvent
(FacesContext facesContext, String key) Instantiate a newPreRemoveFlashValueEvent
that indicates the argumentkey
will be removed from the flash.PreRemoveFromViewEvent
(FacesContext facesContext, UIComponent component) Instantiate a newBeforeRemoveFromView
that indicates the argumentcomponent
is about to be removed from the view.PreRenderComponentEvent
(FacesContext facesContext, UIComponent component) Instantiate a newPreRenderComponentEvent
that indicates the argumentcomponent
is about to be rendered.PreRenderViewEvent
(FacesContext facesContext, UIViewRoot root) Instantiate a newPreRenderViewEvent
that indicates the argumentroot
is about to be rendered.PreValidateEvent
(FacesContext facesContext, UIComponent component) ConstructorSystemEvent
(FacesContext facesContext, Object source) Pass the argumentsource
to the superclass constructor.ValueChangeEvent
(FacesContext facesContext, UIComponent component, Object oldValue, Object newValue) Construct a new event object from the Faces context, specified source component, old value and new value. -
Uses of FacesContext in jakarta.faces.flow
Modifier and TypeMethodDescriptionabstract void
FlowHandler.addFlow
(FacesContext context, Flow toAdd) Add the argumentFlow
to the collection ofFlow
s known to the current application.abstract void
FlowHandler.clientWindowTransition
(FacesContext context) Allow for flow transitions in the case of components rendered by the renderers from component-familyjakarta.faces.OutcomeTarget
.abstract FlowHandler
FlowHandlerFactory.createFlowHandler
(FacesContext context) Create the singleton instance ofFlowHandler
.FlowHandlerFactoryWrapper.createFlowHandler
(FacesContext context) abstract String
FlowCallNode.getCalledFlowDocumentId
(FacesContext context) abstract String
FlowCallNode.getCalledFlowId
(FacesContext context) abstract Boolean
SwitchCase.getCondition
(FacesContext context) Returntrue
if this case should be taken,false
otherwise.abstract Flow
FlowHandler.getCurrentFlow
(FacesContext context) abstract String
SwitchNode.getDefaultOutcome
(FacesContext context) Return the default outcome in this switch.abstract Flow
FlowHandler.getFlow
(FacesContext context, String definingDocumentId, String id) Return theFlow
whoseid
is equivalent to the argumentid
, within the scope of the argumentdefiningDocument
.abstract String
ReturnNode.getFromOutcome
(FacesContext context) Return thefromOutcome
to be used when control passes to this return node.abstract String
FlowHandler.getLastDisplayedViewId
(FacesContext context) Return the last displayed viewId for the current flow, as returned byFlowHandler.getCurrentFlow(jakarta.faces.context.FacesContext)
, ornull
if there is no current flow.abstract boolean
FlowHandler.isActive
(FacesContext context, String definingDocument, String id) Returntrue
if and only if the flow referenced by the argumentdefiningDocument
andid
is currently active.abstract void
FlowHandler.popReturnMode
(FacesContext context) Enable the correct handling of navigation when processing a return node.abstract void
FlowHandler.pushReturnMode
(FacesContext context) Enable the correct handling of navigation when processing a return node.abstract void
FlowHandler.transition
(FacesContext context, Flow sourceFlow, Flow targetFlow, FlowCallNode outboundCallNode, String toViewId) Perform a transition in the flow graph for the current user'sClientWindow
. -
Uses of FacesContext in jakarta.faces.lifecycle
Modifier and TypeMethodDescriptionvoid
Lifecycle.attachWindow
(FacesContext context) Create or restore theClientWindow
to be used to display theUIViewRoot
for this run through the lifecycle.void
LifecycleWrapper.attachWindow
(FacesContext context) abstract void
ClientWindow.decode
(FacesContext context) The implementation is responsible for examining the incoming request and extracting the value that must be returned from theClientWindow.getId()
method.void
ClientWindowWrapper.decode
(FacesContext context) void
ClientWindow.disableClientWindowRenderMode
(FacesContext context) Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first before rendering those URLs.void
ClientWindowWrapper.disableClientWindowRenderMode
(FacesContext context) void
ClientWindow.enableClientWindowRenderMode
(FacesContext context) Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first after rendering those URLs.void
ClientWindowWrapper.enableClientWindowRenderMode
(FacesContext context) abstract void
Lifecycle.execute
(FacesContext context) Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta Faces Specification Document, in the specified order.void
LifecycleWrapper.execute
(FacesContext context) abstract ClientWindow
ClientWindowFactory.getClientWindow
(FacesContext context) The implementation is responsible for creating theClientWindow
instance for this request.ClientWindow.getQueryURLParameters
(FacesContext context) This method will be called whenever a URL is generated by the runtime where client window related parameters need to be inserted into the URL.ClientWindowWrapper.getQueryURLParameters
(FacesContext context) boolean
ClientWindow.isClientWindowRenderModeEnabled
(FacesContext context) Methods that append the ClientWindow to generated URLs must call this method to see if they are permitted to do so.boolean
ClientWindowWrapper.isClientWindowRenderModeEnabled
(FacesContext context) abstract void
Lifecycle.render
(FacesContext context) Execute the Render Response phase of the request processing lifecycle, unless theresponseComplete()
method has been called on theFacesContext
instance associated with the current request.void
LifecycleWrapper.render
(FacesContext context) -
Uses of FacesContext in jakarta.faces.render
Modifier and TypeMethodDescriptionRenderer.convertClientId
(FacesContext context, String clientId) Convert the component generated client id to a form suitable for transmission to the client.RendererWrapper.convertClientId
(FacesContext context, String clientId) void
ClientBehaviorRenderer.decode
(FacesContext context, UIComponent component, ClientBehavior behavior) Decode any new state of thisClientBehavior
from the request contained in the specifiedFacesContext
.void
Renderer.decode
(FacesContext context, T component) Decode any new state of the specifiedUIComponent
from the request contained in the specifiedFacesContext
, and store that state on theUIComponent
.void
RendererWrapper.decode
(FacesContext context, UIComponent component) void
Renderer.encodeBegin
(FacesContext context, T component) Render the beginning specifiedUIComponent
to the output stream or writer associated with the response we are creating.void
RendererWrapper.encodeBegin
(FacesContext context, UIComponent component) void
Renderer.encodeChildren
(FacesContext context, T component) Render the child components of thisUIComponent
, following the rules described forencodeBegin()
to acquire the appropriate value to be rendered.void
RendererWrapper.encodeChildren
(FacesContext context, UIComponent component) void
Renderer.encodeEnd
(FacesContext context, T component) Render the ending of the current state of the specifiedUIComponent
, following the rules described forencodeBegin()
to acquire the appropriate value to be rendered.void
RendererWrapper.encodeEnd
(FacesContext context, UIComponent component) Renderer.getConvertedValue
(FacesContext context, T component, Object submittedValue) Attempt to convert previously stored state information into an object of the type required for this component (optionally using the registeredConverter
for this component, if there is one).RendererWrapper.getConvertedValue
(FacesContext context, UIComponent component, Object submittedValue) ResponseStateManager.getCryptographicallyStrongTokenFromSession
(FacesContext context) Compliant implementations must return a cryptographically strong token for use to protect views in this application.abstract RenderKit
RenderKitFactory.getRenderKit
(FacesContext context, String renderKitId) Return aRenderKit
instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specifiedFacesContext
, if non-null
.ResponseStateManager.getState
(FacesContext context, String viewId) The implementation must inspect the current request and return an Object representing the tree structure and component state passed in to a previous invocation ofResponseStateManager.writeState(jakarta.faces.context.FacesContext,java.lang.Object)
.ResponseStateManager.getViewState
(FacesContext context, Object state) Return the specified state as aString
without any markup related to the rendering technology supported by this ResponseStateManager.boolean
ResponseStateManager.isPostback
(FacesContext context) Return true if the current request is a postback.boolean
ResponseStateManager.isStateless
(FacesContext context, String viewId) If the preceding call toResponseStateManager.writeState(jakarta.faces.context.FacesContext, java.lang.Object)
was stateless, returntrue
.void
ResponseStateManager.writeState
(FacesContext context, Object state) Take the argumentstate
and write it into the output using the currentResponseWriter
, which must be correctly positioned already. -
Uses of FacesContext in jakarta.faces.validator
Modifier and TypeMethodDescriptionvoid
BeanValidator.restoreState
(FacesContext context, Object state) void
DoubleRangeValidator.restoreState
(FacesContext context, Object state) void
LengthValidator.restoreState
(FacesContext context, Object state) void
LongRangeValidator.restoreState
(FacesContext context, Object state) void
MethodExpressionValidator.restoreState
(FacesContext context, Object state) void
RegexValidator.restoreState
(FacesContext context, Object state) BeanValidator.saveState
(FacesContext context) DoubleRangeValidator.saveState
(FacesContext context) LengthValidator.saveState
(FacesContext context) LongRangeValidator.saveState
(FacesContext context) MethodExpressionValidator.saveState
(FacesContext context) RegexValidator.saveState
(FacesContext context) void
BeanValidator.validate
(FacesContext context, UIComponent component, Object value) Verify that the value is valid according to the Bean Validation constraints.void
DoubleRangeValidator.validate
(FacesContext context, UIComponent component, Object value) void
LengthValidator.validate
(FacesContext context, UIComponent component, Object value) void
LongRangeValidator.validate
(FacesContext context, UIComponent component, Object value) void
MethodExpressionValidator.validate
(FacesContext context, UIComponent component, Object value) void
RegexValidator.validate
(FacesContext context, UIComponent component, Object value) Validate a String against a regular expression pattern.void
RequiredValidator.validate
(FacesContext context, UIComponent component, Object value) Verify that the converted object value is not null.void
Validator.validate
(FacesContext context, UIComponent component, T value) -
Uses of FacesContext in jakarta.faces.view
Modifier and TypeMethodDescriptionvoid
AttachedObjectHandler.applyAttachedObject
(FacesContext context, UIComponent parent) Take the argumentparent
and apply this attached object to it.abstract void
ViewDeclarationLanguage.buildView
(FacesContext context, UIViewRoot root) Take any actions specific to this VDL implementation to cause the argumentUIViewRoot
which must have been created via a call toViewDeclarationLanguage.createView(jakarta.faces.context.FacesContext, java.lang.String)
, to be populated with children.void
ViewDeclarationLanguageWrapper.buildView
(FacesContext context, UIViewRoot root) ViewDeclarationLanguage.calculateResourceLibraryContracts
(FacesContext context, String viewId) Return the list of resource library contracts that will be made available for use in the view specified by the argumentviewId
.ViewDeclarationLanguageWrapper.calculateResourceLibraryContracts
(FacesContext context, String viewId) ViewDeclarationLanguage.createComponent
(FacesContext context, String taglibURI, String tagName, Map<String, Object> attributes) Create a component given aViewDeclarationLanguage
specific tag library URI and tag name.ViewDeclarationLanguageWrapper.createComponent
(FacesContext context, String taglibURI, String tagName, Map<String, Object> attributes) abstract UIViewRoot
ViewMetadata.createMetadataView
(FacesContext context) Creates a newUIViewRoot
containing only view parameter metadata.abstract UIViewRoot
ViewDeclarationLanguage.createView
(FacesContext context, String viewId) Create aUIViewRoot
from the VDL contained in the artifact referenced by the argumentviewId
.ViewDeclarationLanguageWrapper.createView
(FacesContext context, String viewId) abstract BeanInfo
ViewDeclarationLanguage.getComponentMetadata
(FacesContext context, Resource componentResource) Return a reference to the component metadata for the composite component represented by the argumentcomponentResource
, ornull
if the metadata cannot be found.ViewDeclarationLanguageWrapper.getComponentMetadata
(FacesContext context, Resource componentResource) abstract Resource
ViewDeclarationLanguage.getScriptComponentResource
(FacesContext context, Resource componentResource) Take implementation specific action to discover aResource
given the argumentcomponentResource
.ViewDeclarationLanguageWrapper.getScriptComponentResource
(FacesContext context, Resource componentResource) abstract StateManagementStrategy
ViewDeclarationLanguage.getStateManagementStrategy
(FacesContext context, String viewId) For implementations that want to control the implementation of state saving and restoring, theStateManagementStrategy
allows them to do so.ViewDeclarationLanguageWrapper.getStateManagementStrategy
(FacesContext context, String viewId) abstract ViewMetadata
ViewDeclarationLanguage.getViewMetadata
(FacesContext context, String viewId) Return a reference to the view metadata for the view represented by the argumentviewId
, ornull
if the metadata cannot be found.ViewDeclarationLanguageWrapper.getViewMetadata
(FacesContext context, String viewId) ViewDeclarationLanguage.getViews
(FacesContext facesContext, String path, int maxDepth, ViewVisitOption... options) Return aStream
possibly lazily populated by walking the view tree rooted at a given initial path.ViewDeclarationLanguage.getViews
(FacesContext facesContext, String path, ViewVisitOption... options) Return aStream
possibly lazily populated by walking the view tree rooted at a given initial path.ViewDeclarationLanguageWrapper.getViews
(FacesContext context, String path, int maxDepth, ViewVisitOption... options) ViewDeclarationLanguageWrapper.getViews
(FacesContext context, String path, ViewVisitOption... options) abstract void
ViewDeclarationLanguage.renderView
(FacesContext context, UIViewRoot view) Render a view rooted at argumentview
.void
ViewDeclarationLanguageWrapper.renderView
(FacesContext context, UIViewRoot view) abstract UIViewRoot
StateManagementStrategy.restoreView
(FacesContext context, String viewId, String renderKitId) Restore the state of the view with information in the request.abstract UIViewRoot
ViewDeclarationLanguage.restoreView
(FacesContext context, String viewId) Restore aUIViewRoot
from a previously created view.ViewDeclarationLanguageWrapper.restoreView
(FacesContext context, String viewId) void
ViewDeclarationLanguage.retargetAttachedObjects
(FacesContext context, UIComponent topLevelComponent, List<AttachedObjectHandler> handlers) Assuming the component metadata for argumenttopLevelComponent
has been made available by an earlier call toViewDeclarationLanguage.getComponentMetadata(jakarta.faces.context.FacesContext, jakarta.faces.application.Resource)
, leverage the component metadata for the purpose of re-targeting attached objects from the top level composite component to the individualAttachedObjectTarget
instances inside the composite component.void
ViewDeclarationLanguageWrapper.retargetAttachedObjects
(FacesContext context, UIComponent topLevelComponent, List<AttachedObjectHandler> handlers) void
ViewDeclarationLanguage.retargetMethodExpressions
(FacesContext context, UIComponent topLevelComponent) Assuming the component metadata for argumenttopLevelComponent
has been made available by an earlier call toViewDeclarationLanguage.getComponentMetadata(jakarta.faces.context.FacesContext, jakarta.faces.application.Resource)
, leverage the component metadata for the purpose of re-targeting any method expressions from the top level component to the appropriate inner component.void
ViewDeclarationLanguageWrapper.retargetMethodExpressions
(FacesContext context, UIComponent topLevelComponent) abstract Object
StateManagementStrategy.saveView
(FacesContext context) Return the state of the current view in anObject
that implementsSerializable
and can be passed tojava.io.ObjectOutputStream.writeObject()
without causing ajava.io.NotSerializableException
to be thrown. The default implementation must perform the following algorithm or its semantic equivalent, explicitly performing all the steps listed here.boolean
ViewDeclarationLanguage.viewExists
(FacesContext context, String viewId) Tests whether a physical resource corresponding to the specified viewId exists.boolean
ViewDeclarationLanguageWrapper.viewExists
(FacesContext context, String viewId) -
Uses of FacesContext in jakarta.faces.view.facelets
Modifier and TypeMethodDescriptionabstract FacesContext
FaceletContext.getFacesContext()
The current FacesContext bound to this "request".Modifier and TypeMethodDescriptionabstract void
Facelet.apply
(FacesContext facesContext, UIComponent parent) The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document.final void
FaceletsAttachedObjectHandler.applyAttachedObject
(FacesContext ctx, UIComponent parent) Take the necessary actions to apply the attached object represented by the tag for the concrete subclass of this class to the argumentparent
.void
Facelet.applyMetadata
(FacesContext facesContext, UIComponent parent) The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document with only the meta data as per thef:metadata
tag.