Uses of Class
jakarta.faces.FacesException
Package
Description
-
Uses of FacesException in jakarta.faces
Modifier and TypeMethodDescriptionstatic Object
FactoryFinder.getFactory
(String factoryName) Create (if necessary) and return a per-web-application instance of the appropriate implementation class for the specified Jakarta Faces factory class, based on the discovery algorithm described in the class description.static void
FactoryFinder.releaseFactories()
Release any references to factory instances associated with the class loader for the calling web application. -
Uses of FacesException in jakarta.faces.application
Modifier and TypeClassDescriptionclass
This exception is thrown by the runtime when a violation of the view protection mechanism is encountered.class
Implementations must throw thisFacesException
when attempting to restore the viewStateManagementStrategy.restoreView(FacesContext, String, String)
results in failure on postback.Modifier and TypeMethodDescriptionApplication.createBehavior
(String behaviorId) Instantiate and return a newBehavior
instance of the class specified by a previous call toaddBehavior()
for the specified behavior id.ApplicationWrapper.createBehavior
(String behaviorId) The default behavior of this method is to callApplication.createBehavior(String)
on the wrappedApplication
object.Application.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType) abstract UIComponent
Application.createComponent
(String componentType) Instantiate and return a newUIComponent
instance of the class specified by a previous call toaddComponent()
for the specified component type.ApplicationWrapper.createComponent
(ValueExpression componentExpression, FacesContext context, String componentType) The default behavior of this method is to callApplication.createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String)
on the wrappedApplication
object.ApplicationWrapper.createComponent
(String componentType) The default behavior of this method is to callApplication.createComponent(String)
on the wrappedApplication
object.abstract Validator
Application.createValidator
(String validatorId) Instantiate and return a newValidator
instance of the class specified by a previous call toaddValidator()
for the specified validator id.ApplicationWrapper.createValidator
(String validatorId) The default behavior of this method is to callApplication.createValidator(String)
on the wrappedApplication
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.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. -
Uses of FacesException in jakarta.faces.component
Modifier and TypeClassDescriptionclass
This exception indicates a failure to update the model and is created to wrap any exception that occurs duringUIInput.updateModel(jakarta.faces.context.FacesContext)
.Modifier and TypeMethodDescriptionboolean
UIComponent.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) Starting at this component in the View hierarchy, search for a component with aclientId
equal to the argumentclientId
and, if found, call theContextCallback.invokeContextCallback(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
method on the argumentcallback
, passing the currentFacesContext
and the found component as arguments.boolean
UIComponentBase.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) Starting at this component in the View hierarchy, search for a component with aclientId
equal to the argumentclientId
and, if found, call theContextCallback.invokeContextCallback(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
method on the argumentcallback
, passing the currentFacesContext
and the found component as arguments.boolean
UIData.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) Override behavior fromUIComponentBase.invokeOnComponent(jakarta.faces.context.FacesContext, java.lang.String, jakarta.faces.component.ContextCallback)
to provide special care for positioning the data properly before finding the component and invoking the callback on it.boolean
UIForm.invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) -
Uses of FacesException in jakarta.faces.component.search
Modifier and TypeClassDescriptionclass
TypedFacesException
for theSearchExpressionHandler
, if a component can't be resolved. -
Uses of FacesException in jakarta.faces.context
Modifier and TypeMethodDescriptionabstract ExternalContext
ExternalContextFactory.getExternalContext
(Object context, Object request, Object response) Create (if needed) and return anExternalContext
instance that is initialized for the processing of the specified request and response objects, for this web application.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.abstract void
ExceptionHandler.handle()
Take action to handle theException
instances residing inside theExceptionQueuedEvent
instances that have been queued by calls toApplication().publishEvent(ExceptionQueuedEvent.class, eventContext)
.void
ExceptionHandlerWrapper.handle()
The default behavior of this method is to callExceptionHandler.handle()
on the wrappedExceptionHandler
object. -
Uses of FacesException in jakarta.faces.convert
Modifier and TypeClassDescriptionclass
ConverterException is an exception thrown by thegetAsObject()
orgetAsText()
method of aConverter
, to indicate that the requested conversion cannot be performed. -
Uses of FacesException in jakarta.faces.event
Modifier and TypeClassDescriptionclass
An exception that may be thrown by event listeners to terminate the processing of the current event. -
Uses of FacesException in jakarta.faces.lifecycle
Modifier and TypeMethodDescriptionabstract void
Lifecycle.execute
(FacesContext context) Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta Faces Specification Document, in the specified order.void
LifecycleWrapper.execute
(FacesContext context) abstract void
Lifecycle.render
(FacesContext context) Execute the Render Response phase of the request processing lifecycle, unless theresponseComplete()
method has been called on theFacesContext
instance associated with the current request.void
LifecycleWrapper.render
(FacesContext context) -
Uses of FacesException in jakarta.faces.validator
Modifier and TypeClassDescriptionclass
A ValidatorException is an exception thrown by thevalidate()
method of aValidator
to indicate that validation failed. -
Uses of FacesException in jakarta.faces.view.facelets
Modifier and TypeClassDescriptionclass
An Exception from the Facelet implementationfinal class
An Exception caused by aTagAttribute
final class
An Exception caused by aTag
Modifier and TypeMethodDescriptionvoid
DelegatingMetaTagHandler.applyNextHandler
(FaceletContext ctx, UIComponent c) Invoke theapply()
method on this instance'sTagHandler.nextHandler
.