|
||||||||||
| 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.DataSourceActionButtonTag
public class DataSourceActionButtonTag
This tag dynamically creates a HTML button. The button 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 button should be enabled. The button will usually have an onClick event handler. The onClick event handler can be any JavaScript expression. However, it will usually be of the form:The button will be enabled based on the following validation checks:
Known actions are:
There are four placeholders that you can use in your onClick handler. They are:onClick="myAppOperations(this.form, 'placeOrder');"The showDisabled attribute can be used to control if the button is shown in a disabled state, or not shown at all for invalid actions. The default is to show the button in a disabled state. By setting showDisabled="false", the button 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 | |
|---|---|
DataSourceActionButtonTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Resets the state of the tag. |
java.lang.String |
getAlt()
Gets the alt image text. |
java.lang.String |
getHeight()
Gets the height attribute. |
java.lang.String |
getOnselect()
Gets the onselect javascript event handler. |
java.lang.String |
getSrc()
Gets the source for images. |
java.lang.String |
getWidth()
Gets the width attribute. |
void |
setAlt(java.lang.String alt)
Sets the alt attribute. |
void |
setHeight(java.lang.String height)
Sets the height attribute. |
void |
setOnselect(java.lang.String onselect)
Sets the onselect attribute. |
void |
setSrc(java.lang.String src)
Sets the src attribute. |
void |
setWidth(java.lang.String width)
Sets the width attribute. |
| 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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceActionButtonTag()
| 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 getAlt()
public java.lang.String getHeight()
public java.lang.String getOnselect()
public java.lang.String getSrc()
public java.lang.String getWidth()
public void setAlt(java.lang.String alt)
alt - the new alt valuepublic void setHeight(java.lang.String height)
height - the height attributepublic void setOnselect(java.lang.String onselect)
onselect - the new onselect valuepublic void setSrc(java.lang.String src)
src - the new src valuepublic void setWidth(java.lang.String width)
width - the width attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||