Interface AttachedObjectTarget
- 
- All Known Subinterfaces:
- ActionSource2AttachedObjectTarget,- BehaviorHolderAttachedObjectTarget,- EditableValueHolderAttachedObjectTarget,- ValueHolderAttachedObjectTarget
 
 public interface AttachedObjectTargetWithin the declaration of a composite component, an AttachedObjectTargetallows 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. SeeViewDeclarationLanguage.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,EditableValueHolderandActionSource2. The default VDL implementation must provide a corresponding Facelets tag handler for each of the subinterfaces of this interface.- Since:
- 2.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringATTACHED_OBJECT_TARGETS_KEYThe key in the value set of the composite componentBeanDescriptor, the value for which is aList<AttachedObjectTarget>.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Returns the name by which this attached object target is exposed to the page author.List<UIComponent>getTargets(UIComponent topLevelComponent)Returns theList<UIComponent>that thisAttachedObjectTargetexposes.
 
- 
- 
- 
Field Detail- 
ATTACHED_OBJECT_TARGETS_KEYstatic final String ATTACHED_OBJECT_TARGETS_KEY The key in the value set of the composite component BeanDescriptor, the value for which is aList<AttachedObjectTarget>.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getTargetsList<UIComponent> getTargets(UIComponent topLevelComponent) Returns the List<UIComponent>that thisAttachedObjectTargetexposes. Each attached object exposed by the composite component author may point at multipleUIComponentinstances within the composite component. This method is used by theViewDeclarationLanguage.retargetAttachedObjects(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.util.List<jakarta.faces.view.AttachedObjectHandler>)method to take the appropriate action on the attached object.- Parameters:
- topLevelComponent- the top level component for this composite component.
- Returns:
- the result as specified above
 
 - 
getNameString getName() Returns the name by which this attached object target is exposed to the page author. - Returns:
- the name of the attached object target
 
 
- 
 
-