Class CompositeComponentAttributesELResolver
This ELResolver
will handle the resolution of attrs
when processing a composite component
instance.
-
Field Summary
Fields inherited from class jakarta.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getCommonPropertyType
(jakarta.el.ELContext context, Object base) attrs
is considered aString
property.getEvalMapFor
(UIComponent c, FacesContext ctx) Creates (if necessary) and caches anExpressionEvalMap
instance associated with the owningUIComponent
getFeatureDescriptors
(jakarta.el.ELContext context, Object base) ThisELResolver
currently returns no feature descriptors as we have no way to effectively iterate over the UIComponent attributes Map.Class<?>
Readonly, so returnnull
.Ifbase
is a composite component andproperty
isattrs
, return a newExpressionEvalMap
which wraps the composite component's attributes map.boolean
isReadOnly
(jakarta.el.ELContext context, Object base, Object property) Readonly, so returntrue
void
This is a no-op.Methods inherited from class jakarta.el.ELResolver
convertToType, invoke
-
Constructor Details
-
CompositeComponentAttributesELResolver
public CompositeComponentAttributesELResolver()
-
-
Method Details
-
getValue
If
base
is a composite component andproperty
isattrs
, return a newExpressionEvalMap
which wraps the composite component's attributes map.The
ExpressionEvalMap
simple evaluates anyValueExpression
instances stored in the composite component's attribute map and returns the result.If
base
is a composite component andproperty
isparent
attempt to resolve the composite componet parent of the current composite component by callingUIComponent.getCompositeComponentParent(jakarta.faces.component.UIComponent)
) and returning that value.- Specified by:
getValue
in classjakarta.el.ELResolver
- See Also:
-
ELResolver.getValue(jakarta.el.ELContext, Object, Object)
CompositeComponentAttributesELResolver.ExpressionEvalMap
-
getType
Readonly, so return
null
.- Specified by:
getType
in classjakarta.el.ELResolver
- See Also:
-
ELResolver.getType(jakarta.el.ELContext, Object, Object)
-
setValue
This is a no-op.
- Specified by:
setValue
in classjakarta.el.ELResolver
- See Also:
-
ELResolver.setValue(jakarta.el.ELContext, Object, Object, Object)
-
isReadOnly
Readonly, so return
true
- Specified by:
isReadOnly
in classjakarta.el.ELResolver
- See Also:
-
ELResolver.isReadOnly(jakarta.el.ELContext, Object, Object)
-
getFeatureDescriptors
This
ELResolver
currently returns no feature descriptors as we have no way to effectively iterate over the UIComponent attributes Map.- Overrides:
getFeatureDescriptors
in classjakarta.el.ELResolver
- See Also:
-
ELResolver.getFeatureDescriptors(jakarta.el.ELContext, Object)
-
getCommonPropertyType
attrs
is considered aString
property.- Specified by:
getCommonPropertyType
in classjakarta.el.ELResolver
- See Also:
-
ELResolver.getCommonPropertyType(jakarta.el.ELContext, Object)
-
getEvalMapFor
Creates (if necessary) and caches an
ExpressionEvalMap
instance associated with the owningUIComponent
- Parameters:
c
- the owningUIComponent
ctx
- theFacesContext
for the current request- Returns:
- an
ExpressionEvalMap
for the specified component
-