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 messages 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 supplied, 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_wikiContext
-
-
Constructor Summary
Constructors Constructor Description MessagesTag()
-
Method Summary
All Methods Instance Methods Concrete Methods 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, setPageContext
-
-
-
-
Constructor Detail
-
MessagesTag
public MessagesTag()
-
-
Method Detail
-
initTag
public void 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
public void setTopic(java.lang.String topic)
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
setDiv
public void setDiv(java.lang.String div)
-
setAction
public void setAction(java.lang.String action)
-
doWikiStartTag
public final int doWikiStartTag() throws java.io.IOException
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
-
-