Class CommandLinkTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.LinkTag
org.deltava.taglib.html.CommandLinkTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to create a link to a Web Site Command.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.html.ElementTag
_classes, _data, _out
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Renders the end of the HREF tag to the JSP output stream.final int
Renders the start of the HREF tag to the JSP output stream.void
release()
Releases the tag's state variables.void
setAuthOnly
(boolean authUsersOnly) Sets whether to render the link for authenticated users only.void
Overrides the domain to use for the link.void
setLink
(DatabaseBean db) Sets the database ID to link to.void
Sets the ID parameter for the command invocation.void
setNoCache
(boolean noCache) Sets whether to append a cache-busting paramter to the URL.void
Sets the operation parameter for the command invocation.void
Sets the sort parameter for the command invocation.void
Sets the start date if this is linking to a Calendar command.void
Sets the command name.Methods inherited from class org.deltava.taglib.html.LinkTag
setAnchor, setExternal, setLabel, setOnClick, setTarget, validateLink
Methods inherited from class org.deltava.taglib.html.ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setPageContext, setStyle
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
CommandLinkTag
public CommandLinkTag()
-
-
Method Details
-
setLinkID
Sets the ID parameter for the command invocation.- Parameters:
id
- the parameter
-
setLink
Sets the database ID to link to.- Parameters:
db
- aDatabaseBean
with the proper database ID
-
setAuthOnly
public void setAuthOnly(boolean authUsersOnly) Sets whether to render the link for authenticated users only.- Parameters:
authUsersOnly
- TRUE to render only if logged in, otherwise FALSE
-
setNoCache
public void setNoCache(boolean noCache) Sets whether to append a cache-busting paramter to the URL.- Parameters:
noCache
- TRUE to invalidate cache, otherwise FALSE
-
setOp
Sets the operation parameter for the command invocation.- Parameters:
opName
- the operation name
-
setSort
Sets the sort parameter for the command invocation.- Parameters:
sortType
- the sort type
-
setDomain
Overrides the domain to use for the link.- Parameters:
domain
- the domain name
-
setUrl
-
setStartDate
Sets the start date if this is linking to a Calendar command.- Parameters:
dt
- the calendar start date/time
-
release
-
doStartTag
Renders the start of the HREF tag to the JSP output stream. The HREF tag will not be rendered if the linkID parameter is "0x0".- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classLinkTag
- Returns:
- TagSupport.EVAL_BODY_INCLUDE
- Throws:
JspException
- if an error occurs
-
doEndTag
Renders the end of the HREF tag to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classLinkTag
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-