org.apache.myfaces.tobago.taglib.component
Class FileItemValidatorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.faces.webapp.ValidatorTag
          extended by org.apache.myfaces.tobago.taglib.component.FileItemValidatorTag
All Implemented Interfaces:
java.io.Serializable, IterationTag, JspTag, Tag

public class FileItemValidatorTag
extends ValidatorTag

Register an FileItemValidator instance on the UIComponent associated with the closest parent UIComponent custom action.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
FileItemValidatorTag()
           
 
Method Summary
protected  Validator createValidator()
           
 java.lang.String getContentType()
           
 java.lang.String getMaxSize()
           
 void release()
           
 void setContentType(java.lang.String contentType)
           
 void setMaxSize(java.lang.String maxSize)
           
 
Methods inherited from class javax.faces.webapp.ValidatorTag
doStartTag, setValidatorId
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileItemValidatorTag

public FileItemValidatorTag()
Method Detail

getMaxSize

public java.lang.String getMaxSize()

setMaxSize

public void setMaxSize(java.lang.String maxSize)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

createValidator

protected Validator createValidator()
                             throws JspException
Overrides:
createValidator in class ValidatorTag
Throws:
JspException

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class ValidatorTag


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.