Package org.apache.wiki.tags
Class ContentTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.wiki.tags.WikiTagBase
org.apache.wiki.tags.ContentTag
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
public class ContentTag extends WikiTagBase
Is used as a "super include" tag, which can include the proper context
based on the wikicontext.
- Since:
- 2.2
- 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 ContentTag() -
Method Summary
Modifier and Type Method Description intdoEndTag()intdoWikiStartTag()This method is allowed to do pretty much whatever he wants.voidsetComment(String s)Set the template for the COMMENT context.voidsetConflict(String s)Set the template for the CONFLICT context.voidsetDiff(String s)Set the template for the DIFF context.voidsetEdit(String s)Set the template for the EDIT context.voidsetError(String s)Set the template for the ERROR context.voidsetFind(String s)Set the template for the FIND context.voidsetInfo(String s)Set the template for the INFO context.voidsetPrefs(String s)Set the template for the PREFS context.voidsetPreview(String s)Set the template for the PREVIEW context.voidsetView(String s)Set the template for the VIEW context.Methods inherited from class org.apache.wiki.tags.WikiTagBase
doCatch, doFinally, doStartTag, initTag, setId, setPageContextMethods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setParent, setValue
-
Constructor Details
-
ContentTag
public ContentTag()
-
-
Method Details
-
setView
Set the template for the VIEW context.- Parameters:
s- The template name.
-
setDiff
Set the template for the DIFF context.- Parameters:
s- The template name.
-
setInfo
Set the template for the INFO context.- Parameters:
s- The template name.
-
setPreview
Set the template for the PREVIEW context.- Parameters:
s- The template name.
-
setConflict
Set the template for the CONFLICT context.- Parameters:
s- The template name.
-
setFind
Set the template for the FIND context.- Parameters:
s- The template name.
-
setPrefs
Set the template for the PREFS context.- Parameters:
s- The template name.
-
setError
Set the template for the ERROR context.- Parameters:
s- The template name.
-
setEdit
Set the template for the EDIT context.- Parameters:
s- The template name.
-
setComment
Set the template for the COMMENT context.- Parameters:
s- The template name.
-
doWikiStartTag
This method is allowed to do pretty much whatever he wants. We then catch all mistakes.- Specified by:
doWikiStartTagin classWikiTagBase- Throws:
IOExceptionProviderException
-
doEndTag
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classWikiTagBase- Throws:
javax.servlet.jsp.JspException
-