Enable the Jakarta Faces implementation to provide the
appropriate behavior for the kind of MetaTagHandler subclass for each kind of element in the view, while
providing a base-class from which those wanting to make a Java language custom tag handler can inherit. The Jakarta
Server Faces runtime provides the implementation of getTagHandlerDelegate for the appropriate subclass.
| Modifier and Type | Field and Description |
|---|---|
| private final TagAttribute | |
| protected TagHandlerDelegateFactory | delegateFactory
Class that defines methods relating to helping tag handler instances. |
| private final TagAttribute |
| Access | Constructor and Description |
|---|---|
| public | DelegatingMetaTagHandler(TagConfig
the config used to instantiate this handler. config)Instantiates this handler with the given config. |
| Modifier and Type | Method and Description |
|---|---|
| public void | apply(FaceletContext
the ctx, UIComponent FaceletContext for this view executionthe parent parent)UIComponent of the component represented by this element instance.Implements jakarta.
The default implementation simply calls through to |
| public void | applyNextHandler(FaceletContext
the ctx, UIComponent FaceletContext for this view executionthe c)UIComponent of the component represented by this element instance.
Invoke the |
| protected MetaRuleset | createMetaRuleset(Class<T>
the type)Class for which the MetaRuleset must be created.Implements abstract jakarta.
The default implementation simply calls through to |
| public TagAttribute | |
| public Tag | Returns: a reference to theTag instance.Return a reference to the |
| public TagAttribute | Returns: the named attribute from the tag attributes.the name of the attribute. localName)Return the named attribute from the tag attributes. |
| protected abstract TagHandlerDelegate | |
| public String | Returns: the tag id from theTagConfig.Return the tag id from the |
| public boolean | Returns: true if the "disabled" attribute has been set to true, false otherwise.the context used for resolving the underlying attribute. ctx)Returns the value of the "disabled" attribute. |
| public void | setAttributes(FaceletContext
the Facelet context. ctx, Object the instance. instance)Overrides jakarta. Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance. |
| binding | back to summary |
|---|---|
| private final TagAttribute binding | |
| delegateFactory | back to summary |
|---|---|
| protected TagHandlerDelegateFactory delegateFactory Class that defines methods relating to helping tag handler instances. | |
| disabled | back to summary |
|---|---|
| private final TagAttribute disabled | |
| DelegatingMetaTagHandler | back to summary |
|---|---|
| public DelegatingMetaTagHandler(TagConfig config) Instantiates this handler with the given config.
| |
| apply | back to summary |
|---|---|
| public void apply(FaceletContext ctx, UIComponent parent) throws IOException Implements jakarta.
The default implementation simply calls through to
| |
| applyNextHandler | back to summary |
|---|---|
| public void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, ELException
Invoke the
| |
| createMetaRuleset | back to summary |
|---|---|
| protected MetaRuleset createMetaRuleset(Class<T> type) Implements abstract jakarta.
The default implementation simply calls through to
| |
| getBinding | back to summary |
|---|---|
| public TagAttribute getBinding() Return the "binding" attribute.
| |
| getTag | back to summary |
|---|---|
| public Tag getTag() Return a reference to the
| |
| getTagAttribute | back to summary |
|---|---|
| public TagAttribute getTagAttribute(String localName) Return the named attribute from the tag attributes.
| |
| getTagHandlerDelegate | back to summary |
|---|---|
| protected abstract TagHandlerDelegate getTagHandlerDelegate() Get the tag handler delegate. Code that extends from DelegatingMetaTagHandler (directly or indirectly, as through extending ComponentHandler) must take care to decorate, not replace, the TagHandlerDelegate instance returned by this method. Failure to do so may produce unexpected results.
| |
| getTagId | back to summary |
|---|---|
| public String getTagId() Return the tag id from the
| |
| isDisabled | back to summary |
|---|---|
| public boolean isDisabled(FaceletContext ctx) Returns the value of the "disabled" attribute.
| |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(FaceletContext ctx, Object instance) Overrides jakarta. Doc from jakarta. Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.
| |