Package org.deltava.taglib.format
Class ListFormatTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.ListFormatTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to format Collection values.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Renders the object as a delimited string to the JSP output stream.void
release()
Releases the tag's state variables.void
Sets the delimiter for the list entries.void
Sets the value to display if the Collection is empty.void
setValue
(Collection<?> c) Sets the values to display.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
ListFormatTag
public ListFormatTag()
-
-
Method Details
-
setDelim
Sets the delimiter for the list entries.- Parameters:
delim
- the delimiter
-
setValue
Sets the values to display.- Parameters:
c
- a Collection of objects
-
setEmpty
Sets the value to display if the Collection is empty.- Parameters:
e
- the value
-
release
public void release()Releases the tag's state variables.- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
Renders the object as a delimited string to the JSP output stream. If an object in the Collection is aComboAlias
object, then the comboName property will be rendered.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs- See Also:
-