Facelet handler responsible for, building the component tree representation of a composite component based on the metadata contained in the composite interface and implementation sections of the composite component template.
| Modifier and Type | Class and Description |
|---|---|
| private static class | CompositeComponentTagHandler.
Specialized MetaRulesetImpl to return CompositeMetadataTarget for component attribute handling. |
| private static class | CompositeComponentTagHandler.
|
| Modifier and Type | Field and Description |
|---|---|
| private static final String | ATTACHED_OBJECT_HANDLERS_KEY
The key in the value set of the composite component |
| private TagAttribute | |
| private static final String | |
| private Resource | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | applyNextHandler(FaceletContext
the ctx, UIComponent FaceletContext for this view executionthe c)UIComponent of the component represented by this element instance.Overrides jakarta.
Invoke the |
| public UIComponent | createComponent(FaceletContext
the ctx)FaceletContext for this view executionOverrides jakarta. Implements com.
Subclasses that wish to take over the task of instantiating the |
| protected MetaRuleset | createMetaRuleset(Class<T>
the type)Class for which the MetaRuleset must be created.Overrides jakarta. This is basically a copy of what's define in ComponentTagHandlerDelegateImpl except for the MetaRuleset implementation that's being used. |
| public static List | |
| public static List | |
| public UIComponent | |
| public void | setAttributes(FaceletContext
the Facelet context. ctx, Object the instance. instance)Overrides jakarta. Specialized implementation to prevent caching of the MetaRuleset when ProjectStage is Development. |
| public void |
| ATTACHED_OBJECT_HANDLERS_KEY | back to summary |
|---|---|
| private static final String ATTACHED_OBJECT_HANDLERS_KEY
The key in the value set of the composite component | |
| binding | back to summary |
|---|---|
| private TagAttribute binding Hides jakarta. | |
| ccInstanceVariableStandinKey | back to summary |
|---|---|
| private static final String ccInstanceVariableStandinKey | |
| ccResource | back to summary |
|---|---|
| private Resource ccResource | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| CompositeComponentTagHandler | back to summary |
|---|---|
| public CompositeComponentTagHandler(Resource ccResource, ComponentConfig config) | |
| applyCompositeComponent | back to summary |
|---|---|
| private void applyCompositeComponent(FaceletContext ctx, UIComponent c) throws IOException | |
| applyNextHandler | back to summary |
|---|---|
| public void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, ELException Overrides jakarta. Doc from jakarta.
Invoke the
| |
| createComponent | back to summary |
|---|---|
| public UIComponent createComponent(FaceletContext ctx) Overrides jakarta. Implements com. Doc from jakarta.
Subclasses that wish to take over the task of instantiating the
| |
| createMetaRuleset | back to summary |
|---|---|
| protected MetaRuleset createMetaRuleset(Class<T> type) Overrides jakarta. This is basically a copy of what's define in ComponentTagHandlerDelegateImpl except for the MetaRuleset implementation that's being used. This also allows us to treat composite component's backed by custom component implementation classes based on their type. | |
| getAttachedObjectHandlers | back to summary |
|---|---|
| public static List | |
| getAttachedObjectHandlers | back to summary |
|---|---|
public static List
| |
| getCompositeComponent | back to summary |
|---|---|
public UIComponent getCompositeComponent(FacesContext context)
| |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(FaceletContext ctx, Object instance) Overrides jakarta. Specialized implementation to prevent caching of the MetaRuleset when ProjectStage is Development.
| |
| setCompositeComponent | back to summary |
|---|---|
public void setCompositeComponent(FacesContext context, UIComponent cc)
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class | CompositeComponentTagHandler.
This class is responsible for creating ValueExpression instances with the expected type based off the following: - if the composite:attribute metadata is present, then use the type if specified by the author, or default to Object.class - if no composite:attribute is specified, then attempt to return the type based off the bean info for this component |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected MetadataTarget |
| compBeanInfo | back to summary |
|---|---|
| private BeanInfo compBeanInfo | |
| type | back to summary |
|---|---|
| private Class<?> type | |
| CompositeComponentMetaRuleset | back to summary |
|---|---|
| public CompositeComponentMetaRuleset(Tag tag, Class<?> type, BeanInfo compBeanInfo) | |
| getMetadataTarget | back to summary |
|---|---|
| protected MetadataTarget getMetadataTarget() Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private BeanInfo |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private PropertyDescriptor | |
| public Class | getPropertyType(String
the name of the property for which the name)Class must be returned.Overrides com.
Return a |
| private String |
| compBeanInfo | back to summary |
|---|---|
| private BeanInfo compBeanInfo | |
| CompositeMetadataTarget | back to summary |
|---|---|
| public CompositeMetadataTarget(Class<?> type, BeanInfo compBeanInfo) throws IntrospectionException | |
| findDescriptor | back to summary |
|---|---|
| private PropertyDescriptor findDescriptor(String name) | |
| getPropertyType | back to summary |
|---|---|
| public Class Overrides com. Doc from jakarta.
Return a | |
| prefix | back to summary |
|---|---|
| private String prefix(String className) | |
MetaRule for populating the ValueExpression map of a composite component.
| Modifier and Type | Class and Description |
|---|---|
| private static class | CompositeComponentTagHandler.
CompositeExpressionMetadata sets up specialized wrapper ValueExpression instances around the source ValueExpression that, when evaluated, will cause the parent composite component of the currently available composite component to be pushed onto a stack that the ImplicitObjectELResolver will check for. |
| private static class | CompositeComponentTagHandler.
For literal expressions, coerce the literal value to the type as provided to the constructor prior to setting the value into the component's attribute map. |
| Modifier and Type | Field and Description |
|---|---|
| private static final CompositeComponentTagHandler. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Metadata | applyRule(String
the name for this rule. This will generally be the name of a tag attribute in the VDL. name, TagAttribute the name/value pair for this attribute on this particular instance of an element in the page. attribute, MetadataTarget the meta)MetadataTarged that can be used to discern what kind of action to encapsulate within the
abstraction to be returned.Implements abstract jakarta.
Return an abstraction that takes appropriate action given the kind of rule represented by the argument
|
| Instance | back to summary |
|---|---|
| private static final CompositeComponentTagHandler. | |
| CompositeComponentRule | back to summary |
|---|---|
| private CompositeComponentRule() | |
| applyRule | back to summary |
|---|---|
| public Metadata applyRule(String name, TagAttribute attribute, MetadataTarget meta) Implements abstract jakarta. Doc from jakarta.
Return an abstraction that takes appropriate action given the kind of rule represented by the argument
| |
| Modifier and Type | Field and Description |
|---|---|
| private TagAttribute | |
| private String | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyMetadata(FaceletContext
The FaceletContext for this request. ctx, Object The instance from the Jakarta Faces Java API on which the action should be taken. For example,
an instance of instance)jakarta..Implements abstract jakarta. Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute. |
| attr | back to summary |
|---|---|
| private TagAttribute attr | |
| name | back to summary |
|---|---|
| private String name | |
| type | back to summary |
|---|---|
| private Class<?> type | |
| CompositeExpressionMetadata | back to summary |
|---|---|
| public CompositeExpressionMetadata(String name, Class<?> type, TagAttribute attr) | |
| applyMetadata | back to summary |
|---|---|
| public void applyMetadata(FaceletContext ctx, Object instance) Implements abstract jakarta. Doc from jakarta. Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute.
| |
| Modifier and Type | Field and Description |
|---|---|
| private TagAttribute | |
| private String | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyMetadata(FaceletContext
The FaceletContext for this request. ctx, Object The instance from the Jakarta Faces Java API on which the action should be taken. For example,
an instance of instance)jakarta..Implements abstract jakarta. Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute. |
| attribute | back to summary |
|---|---|
| private TagAttribute attribute | |
| name | back to summary |
|---|---|
| private String name | |
| type | back to summary |
|---|---|
| private Class<?> type | |
| LiteralAttributeMetadata | back to summary |
|---|---|
| public LiteralAttributeMetadata(String name, Class<?> type, TagAttribute attribute) | |
| applyMetadata | back to summary |
|---|---|
| public void applyMetadata(FaceletContext ctx, Object instance) Implements abstract jakarta. Doc from jakarta. Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute.
| |