Package com.sun.faces.taglib.jsf_core
Class CoreValidator
java.lang.Object
jakarta.servlet.jsp.tagext.TagLibraryValidator
com.sun.faces.taglib.FacesValidator
com.sun.faces.taglib.jsf_core.CoreValidator
public class CoreValidator extends FacesValidator
A TagLibrary Validator class to allow a TLD to mandate that Faces tag must have an id if it is a child or sibling of a Jakarta Standard Tag conditional or iteration tag
- Author:
- Justyna Horwat
-
Field Summary
Fields inherited from class com.sun.faces.taglib.FacesValidator
failed, JSF_CORE_PRE, JSF_FORM_LN, JSF_FORM_QN, JSF_HTML_PRE, JSF_SUBVIEW_LN, JSF_SUBVIEW_QN, JSTL_CHOOSE_LN, JSTL_CHOOSE_QN, JSTL_CORE_PRE, JSTL_FOREACH_LN, JSTL_FOREACH_QN, JSTL_FORTOKENS_LN, JSTL_FORTOKENS_QN, JSTL_IF_LN, JSTL_IF_QN
-
Constructor Summary
Constructors Constructor Description CoreValidator()
CoreValidator constructor -
Method Summary
Modifier and Type Method Description protected String
getFailureMessage(String prefix, String uri)
Create failure message from any failed validationsprotected DefaultHandler
getSAXHandler()
Get the validator handlerprotected void
init()
Initialize statevoid
release()
Release and re-initialize stateMethods inherited from class com.sun.faces.taglib.FacesValidator
debugPrintTagData, getJSF_CORE_PRE, getJSF_FORM_LN, getJSF_FORM_QN, getJSF_HTML_PRE, getJSF_SUBVIEW_LN, getJSF_SUBVIEW_QN, getJSTL_CHOOSE_LN, getJSTL_CHOOSE_QN, getJSTL_CORE_PRE, getJSTL_FOREACH_LN, getJSTL_FOREACH_QN, getJSTL_FORTOKENS_LN, getJSTL_FORTOKENS_QN, getJSTL_IF_LN, getJSTL_IF_QN, maybeSnagTLPrefixes, validate
-
Constructor Details
-
CoreValidator
public CoreValidator()CoreValidator constructor
-
-
Method Details
-
init
protected void init()Initialize state
- Overrides:
init
in classFacesValidator
-
release
public void release()Release and re-initialize state
- Overrides:
release
in classFacesValidator
-
getSAXHandler
Get the validator handler
- Specified by:
getSAXHandler
in classFacesValidator
-
getFailureMessage
Create failure message from any failed validations
- Specified by:
getFailureMessage
in classFacesValidator
- Parameters:
prefix
- Tag library prefixuri
- Tag library uri
-