- java.lang.Object
-
- javax.faces.view.facelets.TagHandler
-
- javax.faces.view.facelets.MetaTagHandler
-
- javax.faces.view.facelets.DelegatingMetaTagHandler
-
- javax.faces.view.facelets.FaceletsAttachedObjectHandler
-
- javax.faces.view.facelets.ValidatorHandler
-
- All Implemented Interfaces:
- AttachedObjectHandler, EditableValueHolderAttachedObjectHandler, FaceletHandler, ValueHolderAttachedObjectHandler
public class ValidatorHandler extends FaceletsAttachedObjectHandler implements EditableValueHolderAttachedObjectHandler
Handles setting a
Validator
instance on anEditableValueHolder
parent. Will wire all attributes set to theValidator
instance created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to.Will only set/create Validator is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing tree.
-
-
Field Summary
-
Fields inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
-
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor and Description ValidatorHandler(ValidatorConfig config)
Construct this instance around the configuration information in argument
config
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected TagHandlerDelegate
getTagHandlerDelegate()
Return the implementation specific delegate instance that provides the bulk of the work for this handler instance.
ValidatorConfig
getValidatorConfig()
Return the
TagConfig
subclass used to configure this handler instance.String
getValidatorId(FaceletContext ctx)
Retrieve the id of the validator that is to be created and added to the parentEditableValueHolder
.-
Methods inherited from class javax.faces.view.facelets.FaceletsAttachedObjectHandler
applyAttachedObject, getAttachedObjectHandlerHelper, getFor
-
Methods inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributes
-
Methods inherited from class javax.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.faces.view.AttachedObjectHandler
applyAttachedObject, getFor
-
-
-
-
Constructor Detail
-
ValidatorHandler
public ValidatorHandler(ValidatorConfig config)
Construct this instance around the configuration information in argument
config
- Parameters:
config
- theTagConfig
subclass for this kind of attached object.
-
-
Method Detail
-
getTagHandlerDelegate
protected TagHandlerDelegate getTagHandlerDelegate()
Return the implementation specific delegate instance that provides the bulk of the work for this handler instance.
- Specified by:
getTagHandlerDelegate
in classDelegatingMetaTagHandler
-
getValidatorId
public String getValidatorId(FaceletContext ctx)
Retrieve the id of the validator that is to be created and added to the parent
EditableValueHolder
. All subclasses should override this method because it is important for Facelets to have a unique way of identifying the validators that are added to thisEditableValueHolder
and allows exclusions to work properly. An exclusion is a validator declaration that has the attribute "disabled" which resolves to false, instructing Facelets not to register a default validator with the same id.
-
getValidatorConfig
public ValidatorConfig getValidatorConfig()
Return the
TagConfig
subclass used to configure this handler instance.
-
-
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/view/facelets/validatorhandler.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.