public class InputImageTag extends InputTagSupport
Tag class that generates an image button for use in HTML forms, e.g:
<input name="foo" type="image" src="/app/foo.gif" alt="foo"/>
Provides a couple of facilities above and beyond using plain HTML tags. The main advantage is a localization capability. The tag looks in the Stripes Field Name message bundle for resources to be used as the src URL for the image and the alt text of the image. In order it will look for and use:
If localized values exist these are preferred over the values specified directly on the tag.
Additionally if the 'src' URL (whether acquired from the tag attribute or the resource bundle) starts with a slash, the tag will prepend the context path of the web application.
errorRenderer, fieldErrorspageContext, parentTagEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
InputImageTag()
Sets the tag's type to be an image input.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doEndInputTag()
Does the major work of the tag as described in the class level javadoc.
|
int |
doStartInputTag()
Does nothing.
|
String |
getAlign() |
String |
getAlt() |
String |
getSrc() |
String |
getValue() |
void |
setAlign(String align) |
void |
setAlt(String alt) |
void |
setSrc(String src) |
void |
setValue(String value) |
doCatch, doEndTag, doFinally, doStartTag, format, format, getActionBean, getDisabled, getFieldErrors, getFormatPattern, getFormatType, getLocalizedFieldName, getLocalizedFieldName, getName, getOverrideValueOrValues, getParentFormTag, getReadonly, getSingleOverrideValue, getSize, getValidationMetadata, getValueOnPage, hasErrors, isItemSelected, loadErrors, makeFocused, registerWithParentForm, setDisabled, setFocus, setFormatPattern, setFormatType, setName, setReadonly, setSizeevaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, isXmlTags, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setDynamicAttribute, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTaggetActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParentpublic int doStartInputTag()
throws JspException
doStartInputTag in class InputTagSupportJspExceptionpublic int doEndInputTag()
throws JspException
doEndInputTag in class InputTagSupportJspExceptionpublic void setAlign(String align)
public String getAlign()
public void setAlt(String alt)
public String getAlt()
public void setSrc(String src)
public String getSrc()
public void setValue(String value)
public String getValue()
© Copyright 2005-2006, Stripes Development Team.