public class CompositeComponentAttributesELResolver
extends jakarta.el.ELResolver
This ELResolver will handle the resolution of attrs when processing a composite component
instance.
| Constructor and Description |
|---|
CompositeComponentAttributesELResolver() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getCommonPropertyType(jakarta.el.ELContext context,
Object base)
attrs |
Map<String,Object> |
getEvalMapFor(jakarta.faces.component.UIComponent c,
jakarta.faces.context.FacesContext ctx)
Creates (if necessary) and caches an
ExpressionEvalMap instance associated with the owning
UIComponent |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(jakarta.el.ELContext context,
Object base)
This
ELResolver currently returns no feature descriptors as we have no way to effectively iterate over
the UIComponent attributes Map. |
Class<?> |
getType(jakarta.el.ELContext context,
Object base,
Object property)
Readonly, so return
null. |
Object |
getValue(jakarta.el.ELContext context,
Object base,
Object property)
If
base is a composite component and property is attrs, return a new
ExpressionEvalMap which wraps the composite component's attributes map. |
boolean |
isReadOnly(jakarta.el.ELContext context,
Object base,
Object property)
Readonly, so return
true |
void |
setValue(jakarta.el.ELContext context,
Object base,
Object property,
Object value)
This is a no-op.
|
public CompositeComponentAttributesELResolver()
public Object getValue(jakarta.el.ELContext context, Object base, Object property)
If base is a composite component and property is attrs, return a new
ExpressionEvalMap which wraps the composite component's attributes map.
The ExpressionEvalMap simple evaluates any ValueExpression instances stored in the composite
component's attribute map and returns the result.
If base is a composite component and property is parent attempt to resolve the
composite componet parent of the current composite component by calling
UIComponent.getCompositeComponentParent(jakarta.faces.component.UIComponent)) and returning that value.
getValue in class jakarta.el.ELResolverELResolver.getValue(jakarta.el.ELContext, Object, Object),
CompositeComponentAttributesELResolver.ExpressionEvalMappublic Class<?> getType(jakarta.el.ELContext context, Object base, Object property)
Readonly, so return null.
getType in class jakarta.el.ELResolverELResolver.getType(jakarta.el.ELContext, Object, Object)public void setValue(jakarta.el.ELContext context,
Object base,
Object property,
Object value)
This is a no-op.
setValue in class jakarta.el.ELResolverELResolver.setValue(jakarta.el.ELContext, Object, Object, Object)public boolean isReadOnly(jakarta.el.ELContext context,
Object base,
Object property)
Readonly, so return true
isReadOnly in class jakarta.el.ELResolverELResolver.isReadOnly(jakarta.el.ELContext, Object, Object)public Iterator<FeatureDescriptor> getFeatureDescriptors(jakarta.el.ELContext context, Object base)
This ELResolver currently returns no feature descriptors as we have no way to effectively iterate over
the UIComponent attributes Map.
getFeatureDescriptors in class jakarta.el.ELResolverELResolver.getFeatureDescriptors(jakarta.el.ELContext, Object)public Class<?> getCommonPropertyType(jakarta.el.ELContext context, Object base)
attrs is considered a String property.
getCommonPropertyType in class jakarta.el.ELResolverELResolver.getCommonPropertyType(jakarta.el.ELContext, Object)public Map<String,Object> getEvalMapFor(jakarta.faces.component.UIComponent c, jakarta.faces.context.FacesContext ctx)
Creates (if necessary) and caches an ExpressionEvalMap instance associated with the owning
UIComponent
c - the owning UIComponentctx - the FacesContext for the current requestExpressionEvalMap for the specified componentCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.