Interface AttachedObjectTarget

All Known Subinterfaces:
ActionSource2AttachedObjectTarget, ActionSourceAttachedObjectTarget, BehaviorHolderAttachedObjectTarget, EditableValueHolderAttachedObjectTarget, ValueHolderAttachedObjectTarget
All Known Implementing Classes:
ActionSourceAttachedObjectTargetImpl, AttachedObjectTargetImpl, BehaviorHolderAttachedObjectTargetImpl, EditableValueHolderAttachedObjectTargetImpl, ValueHolderAttachedObjectTargetImpl

public interface AttachedObjectTarget

Within the declaration of a composite component, an AttachedObjectTarget allows the composite component author to expose the semantics of an inner component to the page author without exposing the rendering or implementation details of the inner component. See ViewDeclarationLanguage.getComponentMetadata(jakarta.faces.context.FacesContext, jakarta.faces.application.Resource) for the context in which implementations of this interface are used.

The implementation must ensure that this instance is thread safe and may be shared among different component trees.

Subinterfaces are provided for the common behavioral interfaces: Behavior, ValueHolder, EditableValueHolder and ActionSource. The default VDL implementation must provide a corresponding Facelets tag handler for each of the subinterfaces of this interface.

Since:
2.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The key in the value set of the composite component BeanDescriptor, the value for which is a List<AttachedObjectTarget>.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name by which this attached object target is exposed to the page author.
    getTargets(UIComponent topLevelComponent)
    Returns the List<UIComponent> that this AttachedObjectTarget exposes.