com.sun.faces.taglib.jsf_core
Class CoreValidator

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagLibraryValidator
      extended by com.sun.faces.taglib.FacesValidator
          extended by com.sun.faces.taglib.jsf_core.CoreValidator

public class CoreValidator
extends FacesValidator

A TagLibrary Validator class to allow a TLD to mandate that JSF tag must have an id if it is a child or sibling of a JSTL 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
CoreValidator()
          CoreValidator constructor
 
Method Summary
protected  java.lang.String getFailureMessage(java.lang.String prefix, java.lang.String uri)
          Create failure message from any failed validations
protected  org.xml.sax.helpers.DefaultHandler getSAXHandler()
          Get the validator handler
protected  void init()
          Initialize state
 void release()
          Release and re-initialize state
 
Methods 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
 
Methods inherited from class javax.servlet.jsp.tagext.TagLibraryValidator
getInitParameters, setInitParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreValidator

public CoreValidator()

CoreValidator constructor

Method Detail

init

protected void init()

Initialize state

Overrides:
init in class FacesValidator

release

public void release()

Release and re-initialize state

Overrides:
release in class FacesValidator

getSAXHandler

protected org.xml.sax.helpers.DefaultHandler getSAXHandler()

Get the validator handler

Specified by:
getSAXHandler in class FacesValidator

getFailureMessage

protected java.lang.String getFailureMessage(java.lang.String prefix,
                                             java.lang.String uri)

Create failure message from any failed validations

Specified by:
getFailureMessage in class FacesValidator
Parameters:
prefix - Tag library prefix
uri - Tag library uri


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.