biz.c24.io.api.web
Class ErrorsTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by biz.c24.io.api.web.ErrorsTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class ErrorsTag
extends javax.servlet.jsp.tagext.TagSupport

A tag library which creates a table displaying the validation errors thrown by the specified object.
The tag library descriptor should contain the following entry:

 <tag>
     <name>tag name</name>
     <tagclass>biz.c24.io.api.web.ErrorsTag</tagclass>
     <bodycontent>JSP</bodycontent>
     <attribute>
         <name>object</name>
         <required>true</required>
         <rtexprvalue>true</rtexprvalue>
     </attribute>
     <attribute>
         <name>jspName</name>
         <required>true</required>
         <rtexprvalue>true</rtexprvalue>
     </attribute>
 </tag>
 

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
ErrorsTag()
           
 
Method Summary
 int doStartTag()
           
 String getJspName()
          Returns the name of the calling JSP.
 ComplexDataObject getObject()
          Returns the object.
 void setJspName(String jspName)
          Sets the name of the calling JSP.
 void setObject(ComplexDataObject object)
          Sets the object.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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

ErrorsTag

public ErrorsTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getObject

public ComplexDataObject getObject()
Returns the object.

Returns:
The object.

setObject

public void setObject(ComplexDataObject object)
Sets the object.

Parameters:
object - The object.

getJspName

public String getJspName()
Returns the name of the calling JSP.

Returns:
The jsp name.

setJspName

public void setJspName(String jspName)
Sets the name of the calling JSP.

Parameters:
jspName - The jsp name.


C24 Technologies © 2002-2012: All Rights Reserved.