|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.AbstractExpEvalTag
com.taggercat.tags.PageNavigationTag
public class PageNavigationTag
This tag is used to create dynamic page navigation anchor tags.
The link is dynamic in the sense that it is enabled when its condition is true or
it is for a known action, and the user has permission for that action.
<tc:pageNavAnchor enabledCaption="Employees"
disabledCaption="Have a Nice Day" formName="document.form1"
responsePage="/Employees.jsp"
condition="isUserInRole('Admin')" >

| Field Summary |
|---|
| 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 | |
|---|---|
PageNavigationTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Process the end tag. |
int |
doStartTag()
Creates the page navigation tag, and sends it to the page. |
void |
setCondition(java.lang.String expression)
Sets the condition expression when the Anchor is enabled. |
void |
setDisabledCaption(java.lang.String disabledCaption)
Sets the caption when the action is not valid, and therefore disabled. |
void |
setDisabledStyleclass(java.lang.String disabledStyleclass)
Sets the CSS Style class to use of the action is disabled. |
void |
setEnabledCaption(java.lang.String enabledCaption)
Sets the caption when the action is valid, and therefore enabled. |
void |
setErrorPage(java.lang.String errorPage)
Sets the resulting response page if there is an error condition. |
void |
setFormName(java.lang.String formName)
Sets the form name to submit for the action. |
void |
setResponsePage(java.lang.String responsePage)
Sets the resulting response page, usually the current page. |
java.lang.String |
toString()
Returns the string representation of this object. |
| Methods inherited from class com.taggercat.tags.AbstractExpEvalTag |
|---|
getModel, resolveProperty, setScope, setValue, setVar |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PageNavigationTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public void setCondition(java.lang.String expression)
expression - the condition expressionpublic void setDisabledCaption(java.lang.String disabledCaption)
disabledCaption - the caption to use when the link is disabledpublic void setEnabledCaption(java.lang.String enabledCaption)
enabledCaption - enabled captionpublic void setErrorPage(java.lang.String errorPage)
errorPage - the resulting response page if there is an error condition, usually the current pagepublic void setFormName(java.lang.String formName)
formName - the form namepublic void setResponsePage(java.lang.String responsePage)
responsePage - the resulting response page, usually the current pagepublic void setDisabledStyleclass(java.lang.String disabledStyleclass)
disabledStyleclass - the disabled style classpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||