public class MessagesTag extends WikiTagBase
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
- the div
class to wrap the
messages in; if not supplied, information
is assumedATTR_CONTEXT, m_wikiContext
Constructor and Description |
---|
MessagesTag() |
Modifier and Type | Method and Description |
---|---|
int |
doWikiStartTag()
This method is allowed to do pretty much whatever he wants.
|
void |
initTag()
This method is called when the tag is encountered within a new request,
but before the setXXX() methods are called.
|
void |
setAction(String action) |
void |
setDiv(String div) |
void |
setPrefix(String prefix) |
void |
setTopic(String topic) |
doCatch, doEndTag, doFinally, doStartTag, setId, setPageContext
public MessagesTag()
public void initTag()
WikiTagBase
initTag
in class WikiTagBase
public final int doWikiStartTag() throws IOException
WikiTagBase
doWikiStartTag
in class WikiTagBase
IOException
Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.