|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.view.facelets.TagHandler
javax.faces.view.facelets.MetaTagHandler
javax.faces.view.facelets.DelegatingMetaTagHandler
javax.faces.view.facelets.FaceletsAttachedObjectHandler
javax.faces.view.facelets.ValidatorHandler
public class ValidatorHandler
Handles setting a Validator
instance on an EditableValueHolder
parent. Will wire all
attributes set to the Validator
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.
Constructor Summary | |
---|---|
ValidatorHandler(ValidatorConfig config)
Construct this instance around the configuration information in argument |
Method Summary | |
---|---|
ValidatorConfig |
getValidatorConfig()
Return the |
String |
getValidatorId(FaceletContext ctx)
Retrieve the id of the validator that is to be created and added to the parent EditableValueHolder . |
Methods inherited from class javax.faces.view.facelets.FaceletsAttachedObjectHandler |
---|
applyAttachedObject, getFor |
Methods inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler |
---|
apply, applyNextHandler, getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributes |
Methods inherited from class javax.faces.view.facelets.TagHandler |
---|
toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.faces.view.AttachedObjectHandler |
---|
applyAttachedObject, getFor |
Constructor Detail |
---|
public ValidatorHandler(ValidatorConfig config)
Construct this instance around the configuration information in argument config
config
- the TagConfig
subclass for this kind
of attached object.Method Detail |
---|
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 this EditableValueHolder
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.
public ValidatorConfig getValidatorConfig()
Return the TagConfig
subclass used to configure this handler instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |