Uses of Class
jakarta.faces.context.FacesContext
-
Uses of FacesContext in com.sun.faces.application
Methods in com.sun.faces.application with parameters of type FacesContext Modifier and Type Method Description protected void
PropertyEditorHelper. addConversionErrorMessage(FacesContext context, UIComponent component, ConverterException ce)
Add a conversion error message in the case of a PropertyEditor based conversion error.Locale
ViewHandlerImpl. calculateLocale(FacesContext context)
Deprecated.String
ViewHandlerImpl. calculateRenderKitId(FacesContext context)
Deprecated.UIComponent
ApplicationImpl. createComponent(jakarta.el.ValueExpression componentExpression, FacesContext context, String componentType)
UIComponent
ApplicationImpl. createComponent(jakarta.el.ValueExpression componentExpression, FacesContext context, String componentType, String rendererType)
UIComponent
ApplicationImpl. createComponent(FacesContext context, Resource componentResource)
UIComponent
ApplicationImpl. createComponent(FacesContext context, String componentType, String rendererType)
UIComponent
ApplicationImpl. createComponent(ValueBinding componentBinding, FacesContext context, String componentType)
protected DefaultFaceletFactory
ApplicationAssociate. createFaceletFactory(FacesContext ctx, Compiler compiler, WebConfiguration webConfig)
UIViewRoot
ViewHandlerImpl. createView(FacesContext context, String viewId)
Deprecated.<T> T
ApplicationImpl. evaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType)
protected Locale
ViewHandlerImpl. findMatch(FacesContext context, Locale pref)
Deprecated.Attempts to find a matching locale based onpref
and list of supported locales, using the matching algorithm as described in JSTL 8.3.2.String
ViewHandlerImpl. getActionURL(FacesContext context, String viewId)
Deprecated.NavigationCase
NavigationHandlerImpl. getNavigationCase(FacesContext context, String fromAction, String outcome)
NavigationCase
NavigationHandlerImpl. getNavigationCase(FacesContext context, String fromAction, String outcome, String toFlowDocumentId)
ResourceBundle
ApplicationAssociate. getResourceBundle(FacesContext context, String var)
ResourceBundle
ApplicationImpl. getResourceBundle(FacesContext context, String var)
String
ViewHandlerImpl. getResourceURL(FacesContext context, String path)
Deprecated.Class<?>
MethodBindingMethodExpressionAdapter. getType(FacesContext context)
Class
ValueBindingValueExpressionAdapter. getType(FacesContext context)
Object
ValueBindingValueExpressionAdapter. getValue(FacesContext context)
String
ViewHandlerImpl. getWebsocketURL(FacesContext context, String channel)
Deprecated.void
NavigationHandlerImpl. handleNavigation(FacesContext context, String fromAction, String outcome)
void
NavigationHandlerImpl. handleNavigation(FacesContext context, String fromAction, String outcome, String toFlowDocumentId)
void
ViewHandlerImpl. initView(FacesContext context)
Deprecated.Do not call the default implementation ofViewHandler.initView(jakarta.faces.context.FacesContext)
if theExternalContext.getRequestCharacterEncoding()
returns anon-null
result.void
NavigationHandlerImpl. inspectFlow(FacesContext context, Flow flow)
Object
MethodBindingMethodExpressionAdapter. invoke(FacesContext context, Object[] params)
boolean
ValueBindingValueExpressionAdapter. isReadOnly(FacesContext context)
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)
void
ViewHandlerImpl. renderView(FacesContext context, UIViewRoot viewToRender)
Deprecated.void
MethodBindingMethodExpressionAdapter. restoreState(FacesContext context, Object state)
void
MethodExpressionMethodBindingAdapter. restoreState(FacesContext context, Object state)
void
ValueBindingValueExpressionAdapter. restoreState(FacesContext context, Object state)
void
ValueExpressionValueBindingAdapter. restoreState(FacesContext context, Object state)
UIViewRoot
StateManagerImpl. restoreView(FacesContext context, String viewId, String renderKitId)
Restores the view.UIViewRoot
ViewHandlerImpl. restoreView(FacesContext context, String viewId)
Deprecated.Object
MethodBindingMethodExpressionAdapter. saveState(FacesContext context)
Object
MethodExpressionMethodBindingAdapter. saveState(FacesContext context)
Object
ValueBindingValueExpressionAdapter. saveState(FacesContext context)
Object
ValueExpressionValueBindingAdapter. saveState(FacesContext context)
Object
StateManagerImpl. saveView(FacesContext context)
Save the view.static void
NavigationHandlerImpl. setResetFlowHandlerStateIfUnset(FacesContext facesContext, boolean resetFlowHandlerState)
void
ValueBindingValueExpressionAdapter. setValue(FacesContext context, Object value)
static void
NavigationHandlerImpl. unsetResetFlowHandlerState(FacesContext facesContext)
void
StateManagerImpl. writeState(FacesContext context, Object state)
Write out the state.void
ViewHandlerImpl. writeState(FacesContext context)
Deprecated. -
Uses of FacesContext in com.sun.faces.application.annotation
Methods in com.sun.faces.application.annotation with parameters of type FacesContext Modifier and Type Method Description void
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.Object
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
ManagedBeanConfigHandler. 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
Methods in com.sun.faces.application.applicationimpl with parameters of type FacesContext Modifier and Type Method Description UIComponent
InstanceFactory. createComponent(jakarta.el.ValueExpression componentExpression, FacesContext context, String componentType)
UIComponent
InstanceFactory. createComponent(jakarta.el.ValueExpression componentExpression, FacesContext context, String componentType, String rendererType)
UIComponent
InstanceFactory. createComponent(FacesContext context, Resource componentResource, jakarta.el.ExpressionFactory expressionFactory)
UIComponent
InstanceFactory. createComponent(FacesContext context, String componentType, String rendererType)
UIComponent
InstanceFactory. createComponent(ValueBinding componentBinding, FacesContext context, String componentType)
<T> T
ExpressionLanguage. evaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType)
ResourceBundle
Singletons. getResourceBundle(FacesContext context, String var)
void
Events. publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source, ProjectStage projectStage)
void
Events. publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source, ProjectStage projectStage)
-
Uses of FacesContext in com.sun.faces.application.applicationimpl.events
Methods in com.sun.faces.application.applicationimpl.events with parameters of type FacesContext Modifier and Type Method Description void
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
Methods in com.sun.faces.application.resource with parameters of type FacesContext Modifier and Type Method Description protected 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.Resource
ResourceHandlerImpl. createViewResource(FacesContext facesContext, String resourceName)
LibraryInfo
ClasspathResourceHelper. findLibrary(String libraryName, String localePrefix, String contract, FacesContext ctx)
LibraryInfo
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.LibraryInfo
WebappResourceHelper. findLibrary(String libraryName, String localePrefix, String contract, FacesContext ctx)
LibraryInfo
ClasspathResourceHelper. findLibraryWithZipDirectoryEntryScan(String libraryName, String localePrefix, String contract, FacesContext ctx, boolean forceScan)
ResourceInfo
ClasspathResourceHelper. findResource(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx)
ResourceInfo
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.ResourceInfo
ResourceManager. findResource(String libraryName, String resourceName, String contentType, boolean isViewResource, FacesContext ctx)
ResourceInfo
ResourceManager. findResource(String libraryName, String resourceName, String contentType, FacesContext ctx)
Attempt to lookup aResourceInfo
based on the specifiedlibraryName
and
resourceName
ResourceInfo
WebappResourceHelper. findResource(LibraryInfo library, String resourceName, String localePrefix, boolean compressable, FacesContext ctx)
ResourceInfo
ResourceManager. findViewResource(String resourceName, String contentType, FacesContext facesContext)
InputStream
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()
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)
URL
ClasspathResourceHelper. getURL(ResourceInfo resource, FacesContext ctx)
URL
FaceletWebappResourceHelper. getURL(ResourceInfo resource, FacesContext ctx)
abstract URL
ResourceHelper. getURL(ResourceInfo resource, FacesContext ctx)
URL
WebappResourceHelper. getURL(ResourceInfo resource, FacesContext ctx)
Stream<String>
FaceletWebappResourceHelper. getViewResources(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
Stream<String>
ResourceHandlerImpl. getViewResources(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
Stream<String>
ResourceHandlerImpl. getViewResources(FacesContext facesContext, String path, ResourceVisitOption... options)
Stream<String>
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
Methods in com.sun.faces.application.view with parameters of type FacesContext Modifier and Type Method Description protected void
MultiViewHandler. addViewParameters(FacesContext ctx, String viewId, Map<String,List<String>> existingParameters)
void
FaceletViewHandlingStrategy. buildView(FacesContext ctx, UIViewRoot view)
void
JspViewHandlingStrategy. buildView(FacesContext context, UIViewRoot view)
Locale
MultiViewHandler. calculateLocale(FacesContext context)
This code is currently common to allViewHandlingStrategy
instances.String
MultiViewHandler. calculateRenderKitId(FacesContext context)
This code is currently common to allViewHandlingStrategy
instances.List<String>
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, Map<String,Object> viewMap)
Clear the given view map.void
ViewScopeManager. clear(FacesContext facesContext)
Clear the current view map using the Faces context.void
ViewScopeManager. clear(FacesContext facesContext, Map<String,Object> viewMap)
Clear the given view map.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, jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creational)
Create the bean.UIComponent
FaceletViewHandlingStrategy. createComponent(FacesContext context, String taglibURI, String tagName, Map<String,Object> attributes)
BeanInfo
FaceletViewHandlingStrategy. createComponentMetadata(FacesContext context, Resource ccResource)
UIViewRoot
ViewMetadataImpl. createMetadataView(FacesContext context)
protected ResponseWriter
FaceletViewHandlingStrategy. createResponseWriter(FacesContext context)
UIViewRoot
FaceletViewHandlingStrategy. createView(FacesContext ctx, String viewId)
UIViewRoot
MultiViewHandler. createView(FacesContext context, String viewId)
Derive the physical view ID (i.e.UIViewRoot
ViewHandlingStrategy. createView(FacesContext ctx, String viewId)
String
MultiViewHandler. deriveLogicalViewId(FacesContext context, String requestViewId)
protected String
MultiViewHandler. derivePhysicalViewId(FacesContext ctx, String requestViewId, boolean checkPhysical)
String
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)
String
MultiViewHandler. getActionURL(FacesContext context, String viewId)
This code is currently common to allViewHandlingStrategy
instances.<T> T
ViewScopeContextManager. getBean(FacesContext facesContext, jakarta.enterprise.context.spi.Contextual<T> contextual)
Get the value from the view map (or null if not found).String
MultiViewHandler. getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
BeanInfo
FaceletViewHandlingStrategy. getComponentMetadata(FacesContext context, Resource ccResource)
Called by Application._createComponent(Resource).BeanInfo
JspViewHandlingStrategy. getComponentMetadata(FacesContext context, Resource componentResource)
Not supported in JSP-based views.protected Map<String,List<String>>
MultiViewHandler. getFullParameterList(FacesContext ctx, String viewId, Map<String,List<String>> existingParameters)
static ViewScopeManager
ViewScopeManager. getInstance(FacesContext facesContext)
Get our instance.String
MultiViewHandler. getRedirectURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
String
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)
Resource
FaceletViewHandlingStrategy. getScriptComponentResource(FacesContext context, Resource componentResource)
Resource
JspViewHandlingStrategy. getScriptComponentResource(FacesContext context, Resource componentResource)
Not supported in JSP-based views.StateManagementStrategy
FaceletViewHandlingStrategy. getStateManagementStrategy(FacesContext context, String viewId)
StateManagementStrategy
JspViewHandlingStrategy. getStateManagementStrategy(FacesContext context, String viewId)
ViewDeclarationLanguage
MultiViewHandler. getViewDeclarationLanguage(FacesContext context, String viewId)
ViewMetadata
FaceletViewHandlingStrategy. getViewMetadata(FacesContext context, String viewId)
ViewMetadata
JspViewHandlingStrategy. getViewMetadata(FacesContext context, String viewId)
Not supported in JSP-based views.Stream<String>
FaceletViewHandlingStrategy. getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options)
Stream<String>
FaceletViewHandlingStrategy. getViews(FacesContext context, String path, ViewVisitOption... options)
Stream<String>
JspViewHandlingStrategy. getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options)
Not supported in JSP-based views.Stream<String>
JspViewHandlingStrategy. getViews(FacesContext context, String path, ViewVisitOption... options)
Not supported in JSP-based views.Stream<String>
MultiViewHandler. getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options)
Stream<String>
MultiViewHandler. getViews(FacesContext context, String path, ViewVisitOption... options)
String
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)
void
FaceletViewHandlingStrategy. renderView(FacesContext ctx, UIViewRoot viewToRender)
void
JspViewHandlingStrategy. renderView(FacesContext context, UIViewRoot view)
void
MultiViewHandler. renderView(FacesContext context, UIViewRoot viewToRender)
CallViewDeclarationLanguage.renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot)
if the view can be rendered.UIViewRoot
FaceletFullStateManagementStrategy. restoreView(FacesContext context, String viewId, String renderKitId)
Restore the view.UIViewRoot
FaceletPartialStateManagementStrategy. restoreView(FacesContext context, String viewId, String renderKitId)
Restore the view.UIViewRoot
FaceletViewHandlingStrategy. restoreView(FacesContext context, String viewId)
IfUIDebug.debugRequest(jakarta.faces.context.FacesContext)
} istrue
, simply return a new UIViewRoot(), otherwise, call the default logic.UIViewRoot
JspStateManagementStrategy. restoreView(FacesContext context, String viewId, String renderKitId)
Restore the view.UIViewRoot
MultiViewHandler. restoreView(FacesContext context, String viewId)
UIViewRoot
ViewHandlingStrategy. restoreView(FacesContext ctx, String viewId)
void
FaceletViewHandlingStrategy. retargetAttachedObjects(FacesContext context, UIComponent topLevelComponent, List<AttachedObjectHandler> handlers)
void
FaceletViewHandlingStrategy. retargetMethodExpressions(FacesContext context, UIComponent topLevelComponent)
Object
FaceletFullStateManagementStrategy. saveView(FacesContext context)
Save the view.Object
FaceletPartialStateManagementStrategy. saveView(FacesContext context)
Save the view.Object
JspStateManagementStrategy. 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.Constructors in com.sun.faces.application.view with parameters of type FacesContext Constructor Description FaceletFullStateManagementStrategy(FacesContext context)
Constructor.FaceletPartialStateManagementStrategy(FacesContext context)
Constructor.JspStateManagementStrategy(FacesContext context)
Constructor. -
Uses of FacesContext in com.sun.faces.cdi
Methods in com.sun.faces.cdi with parameters of type FacesContext Modifier and Type Method Description Object
CdiConverter. getAsObject(FacesContext facesContext, UIComponent component, String value)
Get the object.String
CdiConverter. getAsString(FacesContext facesContext, UIComponent component, Object value)
Get the string representation.void
CdiConverter. restoreState(FacesContext facesContext, Object state)
Restore the state.void
CdiValidator. restoreState(FacesContext facesContext, Object state)
Restore the state.Object
CdiConverter. saveState(FacesContext facesContext)
Save the state.Object
CdiValidator. saveState(FacesContext facesContext)
Save the state.void
CdiValidator. validate(FacesContext facesContext, UIComponent component, Object value)
Validate. -
Uses of FacesContext in com.sun.faces.component
Methods in com.sun.faces.component with parameters of type FacesContext Modifier and Type Method Description void
ComponentResourceContainer. encodeAll(FacesContext context)
Take no action to prevent component resources from inadvertantly being rendered.UIComponent
CompositeComponentStackManager. findCompositeComponentUsingLocation(FacesContext ctx, Location location)
static CompositeComponentStackManager
CompositeComponentStackManager. getManager(FacesContext ctx)
UIComponent
CompositeComponentStackManager. getParentCompositeComponent(CompositeComponentStackManager.StackType stackType, FacesContext ctx, UIComponent forComponent)
-
Uses of FacesContext in com.sun.faces.component.behavior
Methods in com.sun.faces.component.behavior with parameters of type FacesContext Modifier and Type Method Description void
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
.Constructors in com.sun.faces.component.behavior with parameters of type FacesContext Constructor Description BehaviorInfo(FacesContext context, AjaxBehavior ajaxBehavior, String eventName)
-
Uses of FacesContext in com.sun.faces.component.search
Methods in com.sun.faces.component.search that return FacesContext Modifier and Type Method Description FacesContext
SearchExpressionContextImpl. getFacesContext()
Methods in com.sun.faces.component.search with parameters of type FacesContext Modifier and Type Method Description protected String
SearchExpressionHandlerImpl. extractFirstCommand(FacesContext facesContext, String expression)
Extract the first command from the expression.SearchExpressionContext
SearchExpressionContextFactoryImpl. getSearchExpressionContext(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints)
String[]
SearchExpressionHandlerImpl. splitExpressions(FacesContext context, String expressions)
Constructors in com.sun.faces.component.search with parameters of type FacesContext Constructor Description SearchExpressionContextImpl(FacesContext facesContext)
-
Uses of FacesContext in com.sun.faces.component.validator
Methods in com.sun.faces.component.validator with parameters of type FacesContext Modifier and Type Method Description static 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
Methods in com.sun.faces.component.visit that return FacesContext Modifier and Type Method Description FacesContext
FullVisitContext. getFacesContext()
FacesContext
PartialVisitContext. getFacesContext()
Methods in com.sun.faces.component.visit with parameters of type FacesContext Modifier and Type Method Description VisitContext
VisitContextFactoryImpl. getVisitContext(FacesContext context, Collection<String> ids, Set<VisitHint> hints)
Constructors in com.sun.faces.component.visit with parameters of type FacesContext Constructor Description FullVisitContext(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
Subclasses of FacesContext in com.sun.faces.config Modifier and Type Class Description class
InitFacesContext
A special, minimal implementation of FacesContext used at application initialization time.Methods in com.sun.faces.config with parameters of type FacesContext Modifier and Type Method Description void
ConfigManager. destroy(jakarta.servlet.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
Subclasses of FacesContext in com.sun.faces.config.initfacescontext Modifier and Type Class Description class
NoOpFacesContext
Methods in com.sun.faces.config.initfacescontext with parameters of type FacesContext Modifier and Type Method Description void
NoOpFlash. doPostPhaseActions(FacesContext ctx)
void
NoOpFlash. doPrePhaseActions(FacesContext ctx)
-
Uses of FacesContext in com.sun.faces.config.processor
Methods in com.sun.faces.config.processor with parameters of type FacesContext Modifier and Type Method Description protected Object
AbstractConfigProcessor. createInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source)
protected Object
AbstractConfigProcessor. createInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection)
protected Object
AbstractConfigProcessor. createInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Node source)
void
AbstractConfigProcessor. destroy(jakarta.servlet.ServletContext sc, FacesContext facesContext)
void
ApplicationConfigProcessor. destroy(jakarta.servlet.ServletContext sc, FacesContext facesContext)
void
ConfigProcessor. destroy(jakarta.servlet.ServletContext servletContext, FacesContext facesContext)
void
LifecycleConfigProcessor. destroy(jakarta.servlet.ServletContext sc, FacesContext facesContext)
protected void
AbstractConfigProcessor. destroyInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Object instance)
protected Class<?>
AbstractConfigProcessor. findRootType(jakarta.servlet.ServletContext sc, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments)
void
AbstractConfigProcessor. initializeClassMetadataMap(jakarta.servlet.ServletContext servletContext, FacesContext facesContext)
void
ConfigProcessor. initializeClassMetadataMap(jakarta.servlet.ServletContext servletContext, FacesContext facesContext)
Called to initialize the per-application metadata used by the ConfigProcessorprotected Class<?>
AbstractConfigProcessor. loadClass(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType)
void
ApplicationConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
void
BehaviorConfigProcessor. process(jakarta.servlet.ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos)
void
ComponentConfigProcessor. process(jakarta.servlet.ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos)
void
ConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
Process the array ofDocument
s.void
ConverterConfigProcessor. process(jakarta.servlet.ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos)
void
FaceletTaglibConfigProcessor. process(jakarta.servlet.ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos)
void
FacesConfigExtensionProcessor. process(jakarta.servlet.ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos)
void
FacesFlowDefinitionConfigProcessor. process(jakarta.servlet.ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos)
void
FactoryConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
void
LifecycleConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
void
ManagedBeanConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
void
NavigationConfigProcessor. process(jakarta.servlet.ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos)
void
ProtectedViewsConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
void
RenderKitConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
void
ResourceLibraryContractsConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
Process the configuration documents.void
ValidatorConfigProcessor. process(jakarta.servlet.ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos)
protected void
AbstractConfigProcessor. processAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType)
-
Uses of FacesContext in com.sun.faces.context
Subclasses of FacesContext in com.sun.faces.context Modifier and Type Class Description class
FacesContextImpl
Methods in com.sun.faces.context that return FacesContext Modifier and Type Method Description static FacesContext
FacesContextImpl. getDefaultFacesContext()
FacesContext
FacesContextFactoryImpl. getFacesContext(Object sc, Object request, Object response, Lifecycle lifecycle)
FacesContext
InjectionFacesContextFactory. getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle)
Methods in com.sun.faces.context with parameters of type FacesContext Modifier and Type Method Description PartialViewContext
PartialViewContextFactoryImpl. 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.Constructors in com.sun.faces.context with parameters of type FacesContext Constructor Description DynamicAddRemoveListener(FacesContext context)
Constructor.NoopAddRemoveListener(FacesContext context)
PartialViewContextImpl(FacesContext ctx)
StatelessAddRemoveListener(FacesContext context)
-
Uses of FacesContext in com.sun.faces.context.flash
Methods in com.sun.faces.context.flash with parameters of type FacesContext Modifier and Type Method Description void
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
Methods in com.sun.faces.el with parameters of type FacesContext Modifier and Type Method Description static jakarta.el.ExpressionFactory
ELUtils. getDefaultExpressionFactory(ApplicationAssociate associate, FacesContext facesContext)
static jakarta.el.ExpressionFactory
ELUtils. getDefaultExpressionFactory(FacesContext facesContext)
Map<String,Object>
CompositeComponentAttributesELResolver. getEvalMapFor(UIComponent c, FacesContext ctx)
Creates (if necessary) and caches anExpressionEvalMap
instance associated with the owningUIComponent
Object
ChainAwareVariableResolver. resolveVariable(FacesContext context, String name)
See the class javadocs.Object
VariableResolverImpl. resolveVariable(FacesContext context, String name)
-
Uses of FacesContext in com.sun.faces.ext.component
Methods in com.sun.faces.ext.component with parameters of type FacesContext Modifier and Type Method Description void
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, FacesMessage.Severity severity, Object... params)
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)
Object
UIValidateWholeBean. saveState(FacesContext context)
void
UIValidateWholeBean. updateModel(FacesContext context)
void
UIValidateWholeBean. validate(FacesContext context)
-
Uses of FacesContext in com.sun.faces.ext.render
Methods in com.sun.faces.ext.render with parameters of type FacesContext Modifier and Type Method Description void
FocusHTMLRenderer. encodeEnd(FacesContext context, UIComponent component)
-
Uses of FacesContext in com.sun.faces.ext.validator
Methods in com.sun.faces.ext.validator with parameters of type FacesContext Modifier and Type Method Description void
CreditCardValidator. validate(FacesContext context, UIComponent component, Object obj)
Validate a String against a regular expression pattern... -
Uses of FacesContext in com.sun.faces.facelets.compiler
Methods in com.sun.faces.facelets.compiler that return FacesContext Modifier and Type Method Description protected FacesContext
UILeaf. getFacesContext()
Methods in com.sun.faces.facelets.compiler with parameters of type FacesContext Modifier and Type Method Description void
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)
List<FacesMessage>
CompilationMessageHolder. getNamespacePrefixMessages(FacesContext context, String prefix)
List<FacesMessage>
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
Methods in com.sun.faces.facelets.component with parameters of type FacesContext Modifier and Type Method Description void
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)
String
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)
Object
UIRepeat. saveState(FacesContext faces)
-
Uses of FacesContext in com.sun.faces.facelets.el
Methods in com.sun.faces.facelets.el that return FacesContext Modifier and Type Method Description FacesContext
LegacyELContext. getFacesContext()
Deprecated.Methods in com.sun.faces.facelets.el with parameters of type FacesContext Modifier and Type Method Description Class
LegacyMethodBinding. getType(FacesContext context)
Deprecated.Class
LegacyValueBinding. getType(FacesContext context)
Deprecated.Object
LegacyValueBinding. getValue(FacesContext context)
Deprecated.Object
LegacyMethodBinding. invoke(FacesContext context, Object[] params)
Deprecated.boolean
LegacyValueBinding. isReadOnly(FacesContext context)
Deprecated.void
LegacyValueBinding. setValue(FacesContext context, Object value)
Deprecated.Constructors in com.sun.faces.facelets.el with parameters of type FacesContext Constructor Description LegacyELContext(FacesContext faces)
Deprecated. -
Uses of FacesContext in com.sun.faces.facelets.impl
Methods in com.sun.faces.facelets.impl with parameters of type FacesContext Modifier and Type Method Description UIComponent
DefaultFaceletFactory. _createComponent(FacesContext context, String taglibURI, String tagName, Map<String,Object> attributes)
Facelet
DefaultFaceletFactory. getFacelet(FacesContext context, String uri)
Facelet
DefaultFaceletFactory. getFacelet(FacesContext context, URL url)
Create a Facelet from the passed URL.static IdMapper
IdMapper. getMapper(FacesContext ctx)
Facelet
DefaultFaceletFactory. getMetadataFacelet(FacesContext context, String uri)
Facelet
DefaultFaceletFactory. getMetadataFacelet(FacesContext context, URL url)
static void
IdMapper. setMapper(FacesContext ctx, IdMapper mapper)
-
Uses of FacesContext in com.sun.faces.facelets.tag.composite
Methods in com.sun.faces.facelets.tag.composite that return FacesContext Modifier and Type Method Description protected FacesContext
BehaviorHolderWrapper. getFacesContext()
Methods in com.sun.faces.facelets.tag.composite with parameters of type FacesContext Modifier and Type Method Description void
BehaviorHolderWrapper. decode(FacesContext context)
void
BehaviorHolderWrapper. encodeBegin(FacesContext context)
void
BehaviorHolderWrapper. encodeChildren(FacesContext context)
void
BehaviorHolderWrapper. encodeEnd(FacesContext context)
String
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)
Object
BehaviorHolderWrapper. processSaveState(FacesContext context)
void
BehaviorHolderWrapper. processUpdates(FacesContext context)
void
BehaviorHolderWrapper. processValidators(FacesContext context)
void
BehaviorHolderWrapper. restoreState(FacesContext context, Object state)
Object
BehaviorHolderWrapper. saveState(FacesContext context)
-
Uses of FacesContext in com.sun.faces.facelets.tag.jsf
Methods in com.sun.faces.facelets.tag.jsf with parameters of type FacesContext Modifier and Type Method Description void
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)
UIComponent
CompositeComponentTagHandler. getCompositeComponent(FacesContext context)
static Tag
ComponentSupport. getTagForComponent(FacesContext context, UIComponent c)
static boolean
ComponentSupport. isBuildingNewComponentTree(FacesContext context)
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)
-
Uses of FacesContext in com.sun.faces.facelets.tag.jsf.core
Methods in com.sun.faces.facelets.tag.jsf.core with parameters of type FacesContext Modifier and Type Method Description void
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
Methods in com.sun.faces.facelets.tag.ui with parameters of type FacesContext Modifier and Type Method Description static boolean
UIDebug. debugRequest(FacesContext faces)
void
UIDebug. encodeBegin(FacesContext facesContext)
-
Uses of FacesContext in com.sun.faces.facelets.util
Methods in com.sun.faces.facelets.util with parameters of type FacesContext Modifier and Type Method Description static 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
Methods in com.sun.faces.flow with parameters of type FacesContext Modifier and Type Method Description void
FlowHandlerImpl. addFlow(FacesContext context, Flow toAdd)
void
FlowHandlerImpl. clientWindowTransition(FacesContext context)
FlowHandler
FlowHandlerFactoryImpl. createFlowHandler(FacesContext context)
Create the flow handler.int
FlowHandlerImpl. getAndClearReturnModeDepth(FacesContext context)
String
FlowCallNodeImpl. getCalledFlowDocumentId(FacesContext context)
String
FlowCallNodeImpl. getCalledFlowId(FacesContext context)
Boolean
SwitchCaseImpl. getCondition(FacesContext context)
Flow
FlowHandlerImpl. getCurrentFlow(FacesContext context)
String
SwitchNodeImpl. getDefaultOutcome(FacesContext context)
Flow
FlowHandlerImpl. getFlow(FacesContext context, String definingDocumentId, String id)
String
ReturnNodeImpl. getFromOutcome(FacesContext context)
String
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)
Constructors in com.sun.faces.flow with parameters of type FacesContext Constructor Description MethodCallNodeImpl(FacesContext context, String id, String methodExpressionString, String defaultOutcomeString, List<Parameter> parametersFromConfig)
-
Uses of FacesContext in com.sun.faces.flow.builder
Methods in com.sun.faces.flow.builder with parameters of type FacesContext Modifier and Type Method Description Boolean
MutableNavigationCase. getCondition(FacesContext context)
String
MutableNavigationCase. getToViewId(FacesContext context)
Constructors in com.sun.faces.flow.builder with parameters of type FacesContext Constructor Description FlowBuilderImpl(FacesContext context)
-
Uses of FacesContext in com.sun.faces.lifecycle
Methods in com.sun.faces.lifecycle with parameters of type FacesContext Modifier and Type Method Description void
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)
ClientWindow
ClientWindowFactoryImpl. getClientWindow(FacesContext context)
Map<String,String>
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
ELResolverInitPhaseListener. populateFacesELResolverForJsp(FacesContext context)
Populate the FacesCompositeELResolver stack registered with JSP if a request is being processed for the very first time.protected void
Phase. queueException(FacesContext ctx, Throwable t)
protected void
Phase. queueException(FacesContext ctx, Throwable t, String booleanKey)
void
LifecycleImpl. render(FacesContext context)
Constructors in com.sun.faces.lifecycle with parameters of type FacesContext Constructor Description LifecycleImpl(FacesContext context)
-
Uses of FacesContext in com.sun.faces.mgbean
Methods in com.sun.faces.mgbean with parameters of type FacesContext Modifier and Type Method Description Object
BeanBuilder. build(InjectionProvider injectionProvider, FacesContext context)
protected abstract void
BeanBuilder. buildBean(Object bean, FacesContext context)
protected void
ErrorBean. buildBean(Object bean, FacesContext context)
protected void
ManagedBeanBuilder. buildBean(Object bean, FacesContext context)
protected void
ManagedListBeanBuilder. buildBean(Object bean, FacesContext context)
protected void
ManagedMapBeanBuilder. buildBean(Object bean, FacesContext context)
Object
BeanManager. create(String name, BeanBuilder builder, FacesContext facesContext)
Object
BeanManager. create(String name, FacesContext facesContext)
Object
BeanManager. getBeanFromScope(String name, BeanBuilder builder, FacesContext context)
Object
BeanManager. getBeanFromScope(String name, FacesContext context)
protected void
BeanBuilder. initList(List<BeanBuilder.Expression> source, List target, FacesContext context)
protected void
BeanBuilder. initMap(Map<BeanBuilder.Expression,BeanBuilder.Expression> source, Map target, FacesContext context)
boolean
BeanManager. isBeanInScope(String name, BeanBuilder builder, FacesContext context)
-
Uses of FacesContext in com.sun.faces.push
Methods in com.sun.faces.push with parameters of type FacesContext Modifier and Type Method Description static boolean
WebsocketFacesListener. isNew(FacesContext context, UIWebsocket websocket)
String
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
Methods in com.sun.faces.renderkit with parameters of type FacesContext Modifier and Type Method Description byte[]
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.String
ResponseStateManagerImpl. getCryptographicallyStrongTokenFromSession(FacesContext context)
String
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.String
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.RenderKit
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.Object
ClientSideStateHelper. getState(FacesContext ctx, String viewId)
Inspects the incoming request parameters for the standardized state parameter name.Object
ResponseStateManagerImpl. getState(FacesContext context, String viewId)
Object
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 requestObject
ResponseStateManagerImpl. getTreeStructureToRestore(FacesContext context, String viewId)
String
RenderKitUtils.PredefinedPostbackParameter. getValue(FacesContext context)
String
ResponseStateManagerImpl. getViewState(FacesContext context, Object state)
static void
RenderKitUtils. installJsfJsIfNecessary(FacesContext context)
Only install the JSF script resource if it doesn't exist.static boolean
RenderKitUtils. isJsfJsInstalled(FacesContext context)
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. renderFunction(FacesContext context, UIComponent component, Collection<ClientBehaviorContext.Parameter> params, String submitTarget)
static void
RenderKitUtils. renderHtmlErrorPage(FacesContext ctx, FacesException fe)
static void
RenderKitUtils. renderJsfJsIfNecessary(FacesContext context)
Renders the Javascript necessary to add and remove request parameters to the current form.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.Constructors in com.sun.faces.renderkit with parameters of type FacesContext Constructor Description SelectItemsIterator(FacesContext ctx, UIComponent parent)
Construct an iterator instance for the specified parent component. -
Uses of FacesContext in com.sun.faces.renderkit.html_basic
Methods in com.sun.faces.renderkit.html_basic with parameters of type FacesContext Modifier and Type Method Description void
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)
String
HtmlBasicRenderer. convertClientId(FacesContext context, String clientId)
Object
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)
Object
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 to#decodeGroup(FacesContext, UISelectOne, String)
when 'group' attribute is set.void
ScriptStyleBaseRenderer. decode(FacesContext context, UIComponent component)
void
WebsocketRenderer. decode(FacesContext context, UIComponent component)
Decode all client behaviors.protected 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)
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 to#encodeEndGroup(FacesContext, UISelectOne, String)
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)
Renderjsf.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
.Object
CheckboxRenderer. getConvertedValue(FacesContext context, UIComponent component, Object submittedValue)
Object
FileRenderer. getConvertedValue(FacesContext context, UIComponent component, Object submittedValue)
Object
HtmlBasicInputRenderer. getConvertedValue(FacesContext context, UIComponent component, Object submittedValue)
Object
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
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 alignVertical, FacesContext context, boolean outerTable)
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 alignVertical, 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 alignVertical, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo)
protected void
SelectManyCheckboxListRenderer. renderOption(FacesContext context, UIComponent component, Converter converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, boolean alignVertical, 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
OutcomeTargetLinkRenderer. writeIdAndNameAttributes(FacesContext context, ResponseWriter writer, UIComponent component)
protected String
HtmlBasicRenderer. writeIdAttributeIfNecessary(FacesContext context, ResponseWriter writer, UIComponent component)
Constructors in com.sun.faces.renderkit.html_basic with parameters of type FacesContext Constructor Description Group(FacesContext context, String clientName)
-
Uses of FacesContext in com.sun.faces.taglib.jsf_core
Methods in com.sun.faces.taglib.jsf_core with parameters of type FacesContext Modifier and Type Method Description protected static Converter
AbstractConverterTag. createConverter(jakarta.el.ValueExpression converterId, jakarta.el.ValueExpression binding, FacesContext facesContext)
protected static Validator
AbstractValidatorTag. createValidator(jakarta.el.ValueExpression validatorId, jakarta.el.ValueExpression binding, FacesContext facesContext)
Object
ConverterTag.BindingConverter. getAsObject(FacesContext context, UIComponent component, String value)
String
ConverterTag.BindingConverter. getAsString(FacesContext context, UIComponent component, Object value)
void
ConverterTag.BindingConverter. restoreState(FacesContext context, Object state)
void
SetPropertyActionListenerImpl. restoreState(FacesContext context, Object state)
void
ValidatorTag.BindingValidator. restoreState(FacesContext context, Object state)
Object
ConverterTag.BindingConverter. saveState(FacesContext context)
Object
SetPropertyActionListenerImpl. saveState(FacesContext context)
Object
ValidatorTag.BindingValidator. saveState(FacesContext context)
void
ValidatorTag.BindingValidator. validate(FacesContext context, UIComponent component, Object value)
Perform the correctness checks implemented by thisValidator
against the specifiedUIComponent
. -
Uses of FacesContext in com.sun.faces.util
Methods in com.sun.faces.util with parameters of type FacesContext Modifier and Type Method Description static 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 boolean
RequestStateManager. containsKey(FacesContext ctx, String key)
static String
Util. generateCreatedBy(FacesContext facesContext)
static <T> T
RequestStateManager. get(FacesContext ctx, String key)
static jakarta.validation.Validator
BeanValidation. getBeanValidator(FacesContext context)
static jakarta.enterprise.inject.spi.BeanManager
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 String
Util. getDOCTYPEFromFacesContextAttributes(FacesContext context)
static String
Util. getFacesConfigXmlVersion(FacesContext facesContext)
Get the faces-config.xml version (if any).static String
Util. getFacesMapping(FacesContext context)
Returns the URL pattern of theFacesServlet
that is executing the current request.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)
static Map<String,Object>
RequestStateManager. getStateMap(FacesContext ctx)
static jakarta.validation.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)
String
FacesLogger. interpolateMessage(FacesContext context, String messageId, Object[] params)
static boolean
Util. isCdiAvailable(FacesContext facesContext)
Is CDI available.static boolean
Util. isCdiOneOneOrLater(FacesContext facesContext)
Is CDI 1.1 or laterstatic 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)
Object
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. -
Uses of FacesContext in com.sun.faces.util.copier
Methods in com.sun.faces.util.copier with parameters of type FacesContext Modifier and Type Method Description static Copier
CopierUtils. getCopier(FacesContext context, String copierType)
-
Uses of FacesContext in jakarta.faces.application
Methods in jakarta.faces.application with parameters of type FacesContext Modifier and Type Method Description String
ViewHandler. calculateCharacterEncoding(FacesContext context)
Returns the correct character encoding to be used for this request.String
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.Locale
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.String
ViewHandlerWrapper. calculateRenderKitId(FacesContext context)
The default behavior of this method is to callViewHandler.calculateRenderKitId(jakarta.faces.context.FacesContext)
on the wrappedViewHandler
object.UIComponent
Application. createComponent(jakarta.el.ValueExpression componentExpression, FacesContext context, String componentType)
Call thegetValue()
method on the specifiedValueExpression
.UIComponent
Application. createComponent(jakarta.el.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.UIComponent
Application. createComponent(FacesContext context, Resource componentResource)
UIComponent
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.abstract UIComponent
Application. createComponent(ValueBinding componentBinding, FacesContext context, String componentType)
Deprecated.This has been replaced byApplication.createComponent(jakarta.el.ValueExpression,jakarta.faces.context.FacesContext,java.lang.String)
.UIComponent
ApplicationWrapper. createComponent(jakarta.el.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.UIComponent
ApplicationWrapper. createComponent(jakarta.el.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.UIComponent
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.UIComponent
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.UIComponent
ApplicationWrapper. createComponent(ValueBinding componentBinding, FacesContext context, String componentType)
Deprecated.See superclass for alternative.abstract UIViewRoot
ViewHandler. createView(FacesContext context, String viewId)
Create and return a newUIViewRoot
instance initialized with information from the argumentFacesContext
andviewId
.UIViewRoot
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.ViewResource
ResourceHandler. createViewResource(FacesContext context, String resourceName)
Create an instance ofResource
given the argumentresourceName
, which may contain "/" characters.ViewResource
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.String
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 specification section 7.6.2.String
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.String
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 specification section 7.6.2.String
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)
Deprecated.See superclass for alternative.URL
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.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 Server Faces lifecycle.String
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.URL
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.URL
NavigationCaseWrapper. getBookmarkableURL(FacesContext context)
String
ViewHandler. getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
Return a Jakarta Server Faces action URL derived from the viewId argument that is suitable to be used as the target of a link in a Jakarta Server Faces response.String
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.protected Object
StateManager. getComponentStateToSave(FacesContext context)
Deprecated.the distinction between tree structure and component state is now an implementation detail.protected Object
StateManagerWrapper. getComponentStateToSave(FacesContext context)
The default behavior of this method is to callStateManager.getComponentStateToSave(jakarta.faces.context.FacesContext)
on the wrappedStateManager
object.Boolean
NavigationCase. getCondition(FacesContext context)
Evaluates the<if>
for this<navigation-case>
, if any.Boolean
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.NavigationCase
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.NavigationCase
ConfigurableNavigationHandlerWrapper. getNavigationCase(FacesContext context, String fromAction, String outcome)
NavigationCase
ConfigurableNavigationHandlerWrapper. getNavigationCase(FacesContext context, String fromAction, String outcome, String toFlowDocumentId)
URL
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.URL
NavigationCaseWrapper. getRedirectURL(FacesContext context)
String
ViewHandler. getRedirectURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
Return a Jakarta Server 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.String
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.ResourceBundle
Application. getResourceBundle(FacesContext ctx, String name)
Find aResourceBundle
as defined in the application configuration resources under the specified name.ResourceBundle
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.URL
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.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.String
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.String
NavigationCase. getToViewId(FacesContext context)
Evaluates the<to-view-id>
for this<navigation-case>
String
NavigationCaseWrapper. getToViewId(FacesContext context)
protected Object
StateManager. getTreeStructureToSave(FacesContext context)
Deprecated.the distinction between tree structure and component state is now an implementation detail.protected Object
StateManagerWrapper. getTreeStructureToSave(FacesContext context)
The default behavior of this method is to callStateManager.getTreeStructureToSave(jakarta.faces.context.FacesContext)
on the wrappedStateManager
object.ViewDeclarationLanguage
ViewHandler. getViewDeclarationLanguage(FacesContext context, String viewId)
ViewDeclarationLanguage
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.Stream<String>
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.Stream<String>
ResourceHandler. getViewResources(FacesContext facesContext, String path, ResourceVisitOption... options)
Return aStream
possibly lazily populated by walking the resource tree rooted at a given initial path.Stream<String>
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.Stream<String>
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.Stream<String>
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.Stream<String>
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.Stream<String>
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.Stream<String>
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.String
StateManager. getViewState(FacesContext context)
Convenience method to return the view state as aString
with noRenderKit
specific markup.String
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.String
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.protected void
StateManager. restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId)
Deprecated.the distinction between tree structure and component state is now an implementation detail.protected void
StateManagerWrapper. restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId)
The default behavior of this method is to callStateManager.restoreComponentState(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot, String)
on the wrappedStateManager
object.protected UIViewRoot
StateManager. restoreTreeStructure(FacesContext context, String viewId, String renderKitId)
Deprecated.the distinction between tree structure and component state is now an implementation detail.protected UIViewRoot
StateManagerWrapper. restoreTreeStructure(FacesContext context, String viewId, String renderKitId)
The default behavior of this method is to callStateManager.restoreTreeStructure(jakarta.faces.context.FacesContext, String, String)
on the wrappedStateManager
object.abstract UIViewRoot
StateManager. restoreView(FacesContext context, String viewId, String renderKitId)
Deprecated.UIViewRoot
StateManagerWrapper. restoreView(FacesContext context, String viewId, String renderKitId)
The default behavior of this method is to callStateManager.restoreView(jakarta.faces.context.FacesContext, String, String)
on the wrappedStateManager
object.abstract UIViewRoot
ViewHandler. restoreView(FacesContext context, String viewId)
Perform whatever actions are required to restore the view associated with the specifiedFacesContext
andviewId
.UIViewRoot
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.StateManager.SerializedView
StateManager. saveSerializedView(FacesContext context)
Deprecated.this has been replaced byStateManager.saveView(jakarta.faces.context.FacesContext)
.StateManager.SerializedView
StateManagerWrapper. saveSerializedView(FacesContext context)
The default behavior of this method is to callStateManager.saveSerializedView(jakarta.faces.context.FacesContext)
on the wrappedStateManager
object.Object
StateManager. saveView(FacesContext context)
Deprecated.Object
StateManagerWrapper. saveView(FacesContext context)
The default behavior of this method is to callStateManager.saveView(jakarta.faces.context.FacesContext)
on the wrappedStateManager
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, StateManager.SerializedView state)
Deprecated.This method has been replaced byStateManager.writeState(jakarta.faces.context.FacesContext,java.lang.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, StateManager.SerializedView state)
The default behavior of this method is to callStateManager.writeState(jakarta.faces.context.FacesContext, jakarta.faces.application.StateManager.SerializedView)
on the wrappedStateManager
object.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
Methods in jakarta.faces.component that return FacesContext Modifier and Type Method Description protected abstract FacesContext
UIComponent. getFacesContext()
Convenience method to return theFacesContext
instance for the current request.protected FacesContext
UIComponentBase. getFacesContext()
Methods in jakarta.faces.component with parameters of type FacesContext Modifier and Type Method Description void
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.String
UIData. createUniqueId(FacesContext context, String seed)
String
UIForm. createUniqueId(FacesContext context, String seed)
Generate an identifier for a component.String
UINamingContainer. createUniqueId(FacesContext context, String seed)
String
UIViewRoot. createUniqueId(FacesContext context, String seed)
Generate an identifier for a component.String
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.String
UIComponentBase. getClientId(FacesContext context)
String
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.List<UIComponent>
UIViewRoot. getComponentResources(FacesContext context)
Return an unmodifiable orderedList
of allUIComponent
resources of all supported targets.List<UIComponent>
UIViewRoot. getComponentResources(FacesContext context, String target)
String
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.String
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, jakarta.faces.component.UIComponent, 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.String
UIViewParameter. getStringValue(FacesContext context)
If the value of this parameter comes from aValueExpression
return the value of the expression, otherwise, return the local value.String
UIViewParameter. getStringValueFromModel(FacesContext context)
Manually perform standard conversion steps to get a string value from the value expression.UIViewParameter
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.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.Object
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 using the keyUIComponent.CURRENT_COMPONENT
saving the previousUIComponent
associated withUIComponent.CURRENT_COMPONENT
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.Object
StateHolder. saveState(FacesContext context)
Gets the state of the instance as aSerializable
Object.Object
UIComponentBase. saveState(FacesContext context)
Object
UIData. saveState(FacesContext context)
Object
UIInput. saveState(FacesContext context)
Object
UIOutput. saveState(FacesContext context)
Object
UIViewRoot. saveState(FacesContext context)
Object
TransientStateHolder. saveTransientState(FacesContext context)
Return the object containing related "transient states".Object
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.Constructors in jakarta.faces.component with parameters of type FacesContext Constructor Description Reference(FacesContext context, UIViewParameter param, int indexInParent, String viewIdAtTimeOfConstruction)
Construct a reference to aUIViewParameter
. -
Uses of FacesContext in jakarta.faces.component.behavior
Methods in jakarta.faces.component.behavior that return FacesContext Modifier and Type Method Description abstract FacesContext
ClientBehaviorContext. getFacesContext()
Returns theFacesContext
for the current request.Methods in jakarta.faces.component.behavior with parameters of type FacesContext Modifier and Type Method Description static 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)
Object
AjaxBehavior. saveState(FacesContext context)
Object
BehaviorBase. saveState(FacesContext context)
Implementation ofStateHolder.saveState(jakarta.faces.context.FacesContext)
. -
Uses of FacesContext in jakarta.faces.component.html
Methods in jakarta.faces.component.html with parameters of type FacesContext Modifier and Type Method Description Object
HtmlInputFile. saveState(FacesContext context)
-
Uses of FacesContext in jakarta.faces.component.search
Methods in jakarta.faces.component.search that return FacesContext Modifier and Type Method Description abstract FacesContext
SearchExpressionContext. getFacesContext()
Returns the FacesContext for the current request.Methods in jakarta.faces.component.search with parameters of type FacesContext Modifier and Type Method Description static 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
Methods in jakarta.faces.component.visit that return FacesContext Modifier and Type Method Description abstract FacesContext
VisitContext. getFacesContext()
Returns the FacesContext for the current request.FacesContext
VisitContextWrapper. getFacesContext()
Methods in jakarta.faces.component.visit with parameters of type FacesContext Modifier and Type Method Description static 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
Subclasses of FacesContext in jakarta.faces.context Modifier and Type Class Description class
FacesContextWrapper
Provides a simple implementation ofFacesContext
that can be subclassed by developers wishing to provide specialized behavior to an existingFacesContext
instance.Methods in jakarta.faces.context that return FacesContext Modifier and Type Method Description static 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.FacesContext
FacesContextWrapper. getWrapped()
Methods in jakarta.faces.context with parameters of type FacesContext Modifier and Type Method Description abstract 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.Constructors in jakarta.faces.context with parameters of type FacesContext Constructor Description FacesContextWrapper(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
Methods in jakarta.faces.convert with parameters of type FacesContext Modifier and Type Method Description Object
BigDecimalConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
BigIntegerConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
BooleanConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
ByteConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
CharacterConverter. getAsObject(FacesContext context, UIComponent component, String value)
T
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.Object
DateTimeConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
DoubleConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
EnumConverter. getAsObject(FacesContext context, UIComponent component, String value)
Convert thevalue
argument to one of the enum constants of the class provided in our constructor.Object
FloatConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
IntegerConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
LongConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
NumberConverter. getAsObject(FacesContext context, UIComponent component, String value)
Object
ShortConverter. getAsObject(FacesContext context, UIComponent component, String value)
String
BigDecimalConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
BigIntegerConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
BooleanConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
ByteConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
CharacterConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
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.String
DateTimeConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
DoubleConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
EnumConverter. getAsString(FacesContext context, UIComponent component, Object value)
Convert the enum constant given by thevalue
argument into a String.String
FloatConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
IntegerConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
LongConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
NumberConverter. getAsString(FacesContext context, UIComponent component, Object value)
String
ShortConverter. getAsString(FacesContext context, UIComponent component, Object value)
void
DateTimeConverter. restoreState(FacesContext context, Object state)
void
EnumConverter. restoreState(FacesContext facesContext, Object object)
void
NumberConverter. restoreState(FacesContext context, Object state)
Object
DateTimeConverter. saveState(FacesContext context)
Object
EnumConverter. saveState(FacesContext facesContext)
Object
NumberConverter. saveState(FacesContext context)
-
Uses of FacesContext in jakarta.faces.el
Methods in jakarta.faces.el with parameters of type FacesContext Modifier and Type Method Description abstract Class
MethodBinding. getType(FacesContext context)
Deprecated.Return the Java class representing the return type from the method identified by this method binding expression.abstract Class
ValueBinding. getType(FacesContext context)
Deprecated.Return the type of the property represented by thisValueBinding
, relative to the specifiedFacesContext
.abstract Object
ValueBinding. getValue(FacesContext context)
Deprecated.Return the value of the property represented by thisValueBinding
, relative to the specifiedFacesContext
.abstract Object
MethodBinding. invoke(FacesContext context, Object[] params)
Deprecated.Return the return value (if any) resulting from a call to the method identified by this method binding expression, passing it the specified parameters, relative to the specifiedFacesContext
.abstract boolean
ValueBinding. isReadOnly(FacesContext context)
Deprecated.Returntrue
if the specified property of the specified property is known to be immutable; otherwise, returnfalse
.abstract Object
VariableResolver. resolveVariable(FacesContext context, String name)
Deprecated.Resolve the specified variable name, and return the corresponding object, if any; otherwise, returnnull
.abstract void
ValueBinding. setValue(FacesContext context, Object value)
Deprecated.Set the value of the property represented by thisValueBinding
, relative to the specifiedFacesContext
. -
Uses of FacesContext in jakarta.faces.event
Methods in jakarta.faces.event that return FacesContext Modifier and Type Method Description FacesContext
ExceptionQueuedEventContext. getContext()
TheFacesContext
for this request.FacesContext
FacesEvent. getFacesContext()
Get the Faces context.FacesContext
PhaseEvent. getFacesContext()
Return theFacesContext
for the request being processed.FacesContext
SystemEvent. getFacesContext()
Get the Faces context.Methods in jakarta.faces.event with parameters of type FacesContext Modifier and Type Method Description void
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.Object
MethodExpressionActionListener. saveState(FacesContext context)
BothMethodExpression
instances described in the constructor must be saved.Object
MethodExpressionValueChangeListener. saveState(FacesContext context)
BothMethodExpression
instances described in the constructor must be saved.Constructors in jakarta.faces.event with parameters of type FacesContext Constructor Description ActionEvent(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)
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)
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
Methods in jakarta.faces.flow with parameters of type FacesContext Modifier and Type Method Description abstract 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
.FlowHandler
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.