javax.faces.webapp

Class ValidatorTag

  • All Implemented Interfaces:
    Serializable, IterationTag, JspTag, Tag
    Deprecated. 
    This has been partially replaced by ValidatorELTag. The remainder of the functionality, namely, the binding facility and the implementation of the createValidator() method, is now an implementation detail.

    public class ValidatorTag
    extends TagSupport

    ValidatorTag is a base class for all JSP custom actions that create and register a Validator instance on the EditableValueHolder associated with our most immediate surrounding instance of a tag whose implementation class is a subclass of UIComponentTag. To avoid creating duplicate instances when a page is redisplayed, creation and registration of a Validator occurs only if the corresponding UIComponent was created (by the owning UIComponentTag) during the execution of the current page.

    This class may be used directly to implement a generic validator registration tag (based on the validator-id specified by the id attribute), or as a base class for tag instances that support specific Validator subclasses. This id attribute must refer to one of the well known validator-ids, or a custom validator-id as defined in a faces-config.xml file.

    Subclasses of this class must implement the createValidator() method, which creates and returns a Validator instance. Any configuration properties that specify the limits to be enforced by this Validator must have been set by the createValidator() method. Generally, this occurs by copying corresponding attribute values on the tag instance.

    This tag creates no output to the page currently being created. It is used solely for the side effect of Validator creation.

    See Also:
    Serialized Form
    • Constructor Detail

      • ValidatorTag

        public ValidatorTag()
        Deprecated. 
    • Method Detail

      • setValidatorId

        public void setValidatorId(String validatorId)
        Deprecated. 

        Set the identifer of the Validator instance to be created.

        Parameters:
        validatorId - The new identifier of the validator instance to be created.
      • setBinding

        public void setBinding(String binding)
                        throws JspException
        Deprecated. 

        Set the expression that will be used to create a ValueExpression that references a backing bean property of the Validator instance to be created.

        Parameters:
        binding - The new expression
        Throws:
        JspException - if a JSP error occurs

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/validatortag.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

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

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.