Class JsfManagedBeanResolver
java.lang.Object
jakarta.el.ELResolver
org.springframework.faces.webflow.JsfManagedBeanResolver
public class JsfManagedBeanResolver
extends jakarta.el.ELResolver
ELResolver that checks request, session, and application scopes for existing JSF-managed beans. This allows
traditional JSF-managed beans (defined in faces-config.xml) to be resolved through expressions in a flow definition.
The preferred approach is to instead use Spring to configure such beans, but this is meant to ease migration for
users with existing JSF artifacts. This resolver will delegate to a temporary FacesContext so that JSF managed bean
initialization will be triggered if the bean has not already been initialized by JSF.
- Author:
- Jeremy Grelle, Phillip Webb
-
Field Summary
Fields inherited from class jakarta.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getCommonPropertyType
(jakarta.el.ELContext context, Object base) getFeatureDescriptors
(jakarta.el.ELContext context, Object base) Class<?>
boolean
isReadOnly
(jakarta.el.ELContext context, Object base, Object property) void
Sets a bean value if a corresponding key is found in one of the ExternalContext scopes.Methods inherited from class jakarta.el.ELResolver
convertToType, invoke
-
Constructor Details
-
JsfManagedBeanResolver
public JsfManagedBeanResolver()
-
-
Method Details
-
getCommonPropertyType
- Specified by:
getCommonPropertyType
in classjakarta.el.ELResolver
-
getFeatureDescriptors
- Overrides:
getFeatureDescriptors
in classjakarta.el.ELResolver
-
getType
- Specified by:
getType
in classjakarta.el.ELResolver
-
getValue
- Specified by:
getValue
in classjakarta.el.ELResolver
-
isReadOnly
- Specified by:
isReadOnly
in classjakarta.el.ELResolver
-
setValue
Sets a bean value if a corresponding key is found in one of the ExternalContext scopes.- Specified by:
setValue
in classjakarta.el.ELResolver
-