|
||||||||||
| 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.AbstractDataSourceActionTag
com.taggercat.tags.DataSourceActionLinkTag
public class DataSourceActionLinkTag
This tag dynamically creates a link ( as an anchor tag with an href attribute ) used for data source operations and other user defined events. The link is enabled only if the user has permission to perform the specified action on the named data source.
An expression can be set in the condition attribute for additional checks to determine if the link should be enabled. The link will usually have an href event handler. The href event handler can be any href expression. However, it will usually be of the form:
<a href="javascript:dsOperation( document.form1,'{0}','{1}','/CustomerDetails.jsp','/CustomerDetails.jsp')">Add Customer</a>
The generated href method will be:
<a href="javascript:dsOperation( document.form1,'customer','insert','/CustomerDetails.jsp','/CustomerDetails.jsp')">Add Customer</a>
The link will be enabled based on the following validation checks:
Known actions are:
There are four placeholders that you can use in your href handler. They are:
<a href="javascript:myAppOperations( document.form1,'{0}','placeOrder','/CustomerDetails.jsp','/CustomerDetails.jsp')">Place Order</a>
The showDisabled attribute can be used to control if the link is shown in a disabled
state, or not shown at all for invalid actions. The default is to show the link in
a disabled state by displaying it as simple text and using the disabledCaption if
one has been set. By setting showDisabled="false", the link will not be shown for
invalid actions.
![]() |
![]() |
| 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 | |
|---|---|
DataSourceActionLinkTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Reset the state of the tag. |
java.lang.String |
getCaption()
Gets the caption. |
java.lang.String |
getCharset()
Gets the charset. |
java.lang.String |
getCoords()
Gets the coords. |
java.lang.String |
getDisabledCaption()
Gets the caption used when the link is disabled. |
java.lang.String |
getDisabledStyleclass()
Gets the css style class to used then the link is disabled. |
java.lang.String |
getHref()
Gets the href. |
java.lang.String |
getHreflang()
Gets the hreflang. |
java.lang.String |
getMethod()
Gets the method. |
java.lang.String |
getTarget()
Gets the target. |
java.lang.String |
getType()
Gets the type. |
void |
setCaption(java.lang.String caption)
Sets the anchor caption. |
void |
setCharset(java.lang.String charset)
Sets the charset attribute. |
void |
setCoords(java.lang.String coords)
Sets the coords attribute. |
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 |
setHref(java.lang.String href)
Sets the href attribute. |
void |
setHreflang(java.lang.String hreflang)
Sets the hreflang attribute. |
void |
setMethod(java.lang.String method)
Sets the method attribute. |
void |
setTarget(java.lang.String target)
Sets the target attribute. |
void |
setType(java.lang.String type)
Sets the type attribute. |
java.lang.String |
toString()
Gets the string representation of this object. |
| Methods inherited from class com.taggercat.tags.AbstractExpEvalTag |
|---|
getModel, resolveProperty, setScope, 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 DataSourceActionLinkTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class AbstractDataSourceActionTagjavax.servlet.jsp.JspException
public java.lang.String getCaption()
public java.lang.String getCharset()
public java.lang.String getCoords()
public java.lang.String getHref()
public java.lang.String getHreflang()
public java.lang.String getMethod()
public java.lang.String getTarget()
public java.lang.String getType()
public void setCaption(java.lang.String caption)
caption - the caption value.public void setCharset(java.lang.String charset)
charset - the new charset value.public void setCoords(java.lang.String coords)
coords - the new coords value.public void setDisabledCaption(java.lang.String disabledCaption)
disabledCaption - the caption to use if the link is disabled.public void setDisabledStyleclass(java.lang.String disabledStyleclass)
disabledStyleclass - the disabled style classpublic void setHref(java.lang.String href)
href - the new href value.public void setHreflang(java.lang.String hreflang)
hreflang - the new hreflang value.public void setMethod(java.lang.String method)
method - the new method value.public void setTarget(java.lang.String target)
target - the new target value.public void setType(java.lang.String type)
type - the new type value.public java.lang.String getDisabledCaption()
public java.lang.String getDisabledStyleclass()
public 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 | |||||||||