Package org.apache.wiki.tags
Class MessagesTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.wiki.tags.WikiTagBase
org.apache.wiki.tags.MessagesTag
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
public class MessagesTag extends WikiTagBase
Returns or clears the current messages associated with the user's wiki
session. This tag accepts four attributes:
action- if "clear", the messsages will be cleared. Otherwise, this tag will always print the set of current messages as either a single <p> tag (if there is only one message) or a bulleted list (if there is more than one).prefix- the string to prepend to the list of errors, if there are any; default is empty stringtopic- a collection for messages, for example those associated with a particular web form. If not suppled, defaults to a generic (non-specific) collectiondiv- thedivclass to wrap the messages in; if not supplied,informationis assumed
- Since:
- 2.3.54
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.apache.wiki.tags.WikiTagBase
m_wikiContextFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors Constructor Description MessagesTag() -
Method Summary
Modifier and Type Method Description intdoWikiStartTag()This method is allowed to do pretty much whatever he wants.voidinitTag()This method is called when the tag is encountered within a new request, but before the setXXX() methods are called.voidsetAction(java.lang.String action)voidsetDiv(java.lang.String div)voidsetPrefix(java.lang.String prefix)voidsetTopic(java.lang.String topic)Methods inherited from class org.apache.wiki.tags.WikiTagBase
doCatch, doEndTag, doFinally, doStartTag, setId, setPageContextMethods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MessagesTag
public MessagesTag()
-
-
Method Details
-
initTag
Description copied from class:WikiTagBaseThis method is called when the tag is encountered within a new request, but before the setXXX() methods are called. The default implementation does nothing.- Overrides:
initTagin classWikiTagBase
-
setTopic
-
setPrefix
-
setDiv
-
setAction
-
doWikiStartTag
Description copied from class:WikiTagBaseThis method is allowed to do pretty much whatever he wants. We then catch all mistakes.- Specified by:
doWikiStartTagin classWikiTagBase- Throws:
java.io.IOException
-