- java.lang.Object
-
- javax.faces.webapp.UIComponentTagBase
-
- All Implemented Interfaces:
- JspTag
- Direct Known Subclasses:
- UIComponentClassicTagBase
public abstract class UIComponentTagBase extends Object implements JspTag
UIComponentTagBase
is the base class for all JSP tags that correspond to aUIComponent
instance in the view. This base class allows a single view to be described in a JSP page consisting of bothUIComponentELTag
andUIComponentTag
instances.
-
-
Constructor Summary
Constructors Constructor and Description UIComponentTagBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description protected abstract void
addChild(UIComponent child)
Add the component identifier of the specifiedUIComponent
to the list of component identifiers created or located by nestedUIComponentTag
s processing this request.protected abstract void
addFacet(String name)
Add the facet name of the specified facet to the list of facet names created or located by nestedUIComponentTag
s processing this request.abstract UIComponent
getComponentInstance()
Return theUIComponent
instance that is associated with this tag instance.abstract String
getComponentType()
Return the component type for the component that is or will be bound to this tag.abstract boolean
getCreated()
Returntrue
if we dynamically created a new component instance during execution of this tag.protected ELContext
getELContext()
Return theELContext
for theFacesContext
for this request.protected abstract FacesContext
getFacesContext()
Return theFacesContext
instance for the current request.protected abstract int
getIndexOfNextChildTag()
Return the index of the next child to be added as a child of this tag.abstract String
getRendererType()
Return therendererType
property that selects theRenderer
to be used for encoding this component, ornull
to ask the component to render itself directly.abstract void
setId(String id)
Set the component identifier for the component corresponding to this tag instance.
-
-
-
Field Detail
-
log
protected static final Logger log
-
-
Method Detail
-
getFacesContext
protected abstract FacesContext getFacesContext()
Return the
FacesContext
instance for the current request. This value will be non-null
only from the beginning ofdoStartTag()
through the end ofdoEndTag()
for each tag instance.
-
getELContext
protected ELContext getELContext()
Return the
ELContext
for theFacesContext
for this request.This is a convenience for
getFacesContext().getELContext()
.
-
addChild
protected abstract void addChild(UIComponent child)
Add the component identifier of the specified
UIComponent
to the list of component identifiers created or located by nestedUIComponentTag
s processing this request.- Parameters:
child
- New child whose identifier should be added
-
addFacet
protected abstract void addFacet(String name)
Add the facet name of the specified facet to the list of facet names created or located by nested
UIComponentTag
s processing this request.- Parameters:
name
- Facet name to be added
-
setId
public abstract void setId(String id)
Set the component identifier for the component corresponding to this tag instance. If the argument begins with
UIViewRoot.UNIQUE_ID_PREFIX
throw anIllegalArgumentException
- Parameters:
id
- The new component identifier. This may not start withUIViewRoot.UNIQUE_ID_PREFIX
.- Throws:
IllegalArgumentException
- if the argument is non-null
and starts withUIViewRoot.UNIQUE_ID_PREFIX
.
-
getComponentType
public abstract String getComponentType()
Return the component type for the component that is or will be bound to this tag. This value can be passed to
Application.createComponent(java.lang.String)
to create theUIComponent
instance for this tag. Subclasses must override this method to return the appropriate value.
-
getRendererType
public abstract String getRendererType()
Return the
rendererType
property that selects theRenderer
to be used for encoding this component, ornull
to ask the component to render itself directly. Subclasses must override this method to return the appropriate value.
-
getComponentInstance
public abstract UIComponent getComponentInstance()
Return the
UIComponent
instance that is associated with this tag instance. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution ofdoStartTag()
anddoEndTag()
on this tag instance.
-
getCreated
public abstract boolean getCreated()
Return
true
if we dynamically created a new component instance during execution of this tag. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution ofdoStartTag()
anddoEndTag()
on this tag instance.
-
getIndexOfNextChildTag
protected abstract int getIndexOfNextChildTag()
Return the index of the next child to be added as a child of this tag. The default implementation maintains a list of created components and returns the size of the list.
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/faces/webapp/UIComponentTagBase.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.