-
- All Known Subinterfaces:
- ActionSource2AttachedObjectTarget, BehaviorHolderAttachedObjectTarget, EditableValueHolderAttachedObjectTarget, ValueHolderAttachedObjectTarget
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. SeeViewDeclarationLanguage.getComponentMetadata(javax.faces.context.FacesContext, javax.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
andActionSource2
. 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 and Description static String
ATTACHED_OBJECT_TARGETS_KEY
The key in the value set of the composite component
BeanDescriptor
, the value for which is aList<AttachedObjectTarget>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description String
getName()
Returns the name by which this attached object target is exposed to the page author.
List<UIComponent>
getTargets(UIComponent topLevelComponent)
Returns the
List<UIComponent>
that thisAttachedObjectTarget
exposes.
-
-
-
Field Detail
-
ATTACHED_OBJECT_TARGETS_KEY
static 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
-
getTargets
List<UIComponent> getTargets(UIComponent topLevelComponent)
Returns the
List<UIComponent>
that thisAttachedObjectTarget
exposes. Each attached object exposed by the composite component author may point at multipleUIComponent
instances within the composite component. This method is used by theViewDeclarationLanguage.retargetAttachedObjects(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.util.List<javax.faces.view.AttachedObjectHandler>)
method to take the appropriate action on the attached object.
-
getName
String getName()
Returns the name by which this attached object target is exposed to the page author.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 20:18:36 Cette version de la page est en cache (à la date du 21/08/2025 20:18:36) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/faces/view/attachedobjecttarget.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.