
public abstract class IteratorTag extends javax.servlet.jsp.tagext.BodyTagSupport implements javax.servlet.jsp.tagext.TryCatchFinally
Attributes
| Modifier and Type | Field and Description |
|---|---|
protected Iterator |
m_iterator |
protected String |
m_pageName |
protected WikiContext |
m_wikiContext |
| Constructor and Description |
|---|
IteratorTag() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearList()
Clears the iterator away.
|
int |
doAfterBody() |
void |
doCatch(Throwable arg0)
In case your tag throws an exception at any point, you can
override this method and implement a custom exception handler.
|
int |
doEndTag() |
void |
doFinally()
Executed after the tag has been finished.
|
int |
doStartTag() |
void |
resetIterator()
Override this method to reset your own iterator.
|
void |
setList(Collection arg)
Sets the collection that is used to form the iteration.
|
void |
setList(Object[] arg)
Sets the collection list, but using an array.
|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected String m_pageName
protected Iterator m_iterator
protected WikiContext m_wikiContext
public IteratorTag()
public void setList(Collection arg)
arg - A Collection which will be iterated.public void setList(Object[] arg)
arg - An array of objects which will be iterated.public void clearList()
public void resetIterator()
public int doStartTag()
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportpublic int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportpublic int doAfterBody()
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportpublic void doCatch(Throwable arg0) throws Throwable
By default, this handler does nothing.
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyarg0 - The Throwable that the tag threwThrowable - I have no idea why this would throw anythingpublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallyCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.