Top Fields Constructors Methods
com.sun.faces.facelets.tag.faces

public Class ValidatorTagHandlerDelegateImpl

extends TagHandlerDelegate
implements AttachedObjectHandler
Class Inheritance
All Implemented Interfaces
jakarta.faces.view.AttachedObjectHandler
Imports
java.io.IOException, java.util.HashSet, .Set, com.sun.faces.cdi.CdiValidator, com.sun.faces.component.validator.ComponentValidators, com.sun.faces.facelets.tag.MetaRulesetImpl, com.sun.faces.util.RequestStateManager, .Util, jakarta.el.ValueExpression, jakarta.faces.component.EditableValueHolder, .UIComponent, jakarta.faces.context.FacesContext, jakarta.faces.validator.Validator, jakarta.faces.view.AttachedObjectHandler, jakarta.faces.view.facelets.ComponentHandler, .CompositeFaceletHandler, .FaceletContext, .MetaRuleset, .TagAttribute, .TagException, .TagHandler, .TagHandlerDelegate, .ValidatorHandler

Field Summary

Modifier and TypeField and Description
protected final ValidatorHandler
private final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
apply(FaceletContext
the FaceletContext for this request
ctx
,
UIComponent
the UIComponent that corresponds to this element.
parent
)

Implements abstract jakarta.faces.view.facelets.TagHandlerDelegate.apply.

Called by classes that implement jakarta.faces.view.facelets.FaceletHandler in their implementation of apply().

public void
applyAttachedObject(FacesContext
The FacesContext for this request
context
,
UIComponent
The UIComponent to which this particular attached object must be applied.
parent
)

Implements jakarta.faces.view.AttachedObjectHandler.applyAttachedObject.

Take the argument parent and apply this attached object to it.

private void
private void
public MetaRuleset
createMetaRuleset(Class<T>
the Class for which the MetaRuleset must be created.
type
)

Implements abstract jakarta.faces.view.facelets.TagHandlerDelegate.createMetaRuleset.

Return a MetaRuleset particular to this kind of tag handler.

private Validator<T>

Returns:

a new Validator instance
createValidator
(FaceletContext
FaceletContext to use
ctx
)

Template method for creating a Validator instance

protected ComponentValidators.ValidatorInfo
public String
getFor()

Implements jakarta.faces.view.AttachedObjectHandler.getFor.

Return the value of the "for" attribute specified by the page author on the tag for this AttachedObjectHandler.

private boolean

Field Detail

ownerback to summary
protected final ValidatorHandler owner
wrappingback to summary
private final boolean wrapping

Constructor Detail

ValidatorTagHandlerDelegateImplback to summary
public ValidatorTagHandlerDelegateImpl(ValidatorHandler owner)

Method Detail

applyback to summary
public void apply(FaceletContext ctx, UIComponent parent) throws IOException

Implements abstract jakarta.faces.view.facelets.TagHandlerDelegate.apply.

Doc from jakarta.faces.view.facelets.TagHandlerDelegate.apply.

Called by classes that implement jakarta.faces.view.facelets.FaceletHandler in their implementation of apply().

If the argument comp is new to the view, for each tag attribute declared to be in the pass through attribute namespace, set the name and value of the attribute into the pass through attributes map of the component. See UIComponent#getPassThroughAttributes(boolean). See the VDLDocs for the namespace URI of the pass through attribute namespace. Attributes whose value is a ValueExpression must remain un-evaluated and stored in the map as ValueExpression instances.

Parameters
ctx:FaceletContext

the FaceletContext for this request

parent:UIComponent

the UIComponent that corresponds to this element.

Annotations
@Override
Exceptions
IOException:
if any files necessary to apply this tag handler have any difficulty while loading
applyAttachedObjectback to summary
public void applyAttachedObject(FacesContext context, UIComponent parent)

Implements jakarta.faces.view.AttachedObjectHandler.applyAttachedObject.

Doc from jakarta.faces.view.AttachedObjectHandler.applyAttachedObject.

Take the argument parent and apply this attached object to it. The action taken varies with class that implements one of the subinterfaces of this interface.

Parameters
context:FacesContext

The FacesContext for this request

parent:UIComponent

The UIComponent to which this particular attached object must be applied.

Annotations
@SuppressWarnings:unchecked
@Override
applyNestedback to summary
private void applyNested(FaceletContext ctx, UIComponent parent)
applyWrappingback to summary
private void applyWrapping(FaceletContext ctx, UIComponent parent) throws IOException
createMetaRulesetback to summary
public MetaRuleset createMetaRuleset(Class<T> type)

Implements abstract jakarta.faces.view.facelets.TagHandlerDelegate.createMetaRuleset.

Doc from jakarta.faces.view.facelets.TagHandlerDelegate.createMetaRuleset.

Return a MetaRuleset particular to this kind of tag handler. Called from classes that implement MetaTagHandler.

Parameters
type:Class<T>

the Class for which the MetaRuleset must be created.

Returns:MetaRuleset

a MetaRuleset particular to this kind of tag handler.

Annotations
@Override
createValidatorback to summary
private Validator<T> createValidator(FaceletContext ctx)

Template method for creating a Validator instance

Parameters
ctx:FaceletContext

FaceletContext to use

Returns:Validator<T>

a new Validator instance

createValidatorInfoback to summary
protected ComponentValidators.ValidatorInfo createValidatorInfo(FaceletContext ctx)
getForback to summary
public String getFor()

Implements jakarta.faces.view.AttachedObjectHandler.getFor.

Doc from jakarta.faces.view.AttachedObjectHandler.getFor.

Return the value of the "for" attribute specified by the page author on the tag for this AttachedObjectHandler.

Returns:String

the value of the "for" attribute for this attached object

Annotations
@Override
isWrappingback to summary
private boolean isWrapping()