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, fieldErrors
pageContext, parentTag
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.
|
java.lang.String |
getAlign() |
java.lang.String |
getAlt() |
java.lang.String |
getSrc() |
java.lang.String |
getValue() |
void |
setAlign(java.lang.String align) |
void |
setAlt(java.lang.String alt) |
void |
setSrc(java.lang.String src) |
void |
setValue(java.lang.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, setSize
evaluateExpression, 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, 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, writeSingletonTag
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent
public int doStartInputTag() throws javax.servlet.jsp.JspException
doStartInputTag
in class InputTagSupport
javax.servlet.jsp.JspException
public int doEndInputTag() throws javax.servlet.jsp.JspException
doEndInputTag
in class InputTagSupport
javax.servlet.jsp.JspException
public void setAlign(java.lang.String align)
public java.lang.String getAlign()
public void setAlt(java.lang.String alt)
public java.lang.String getAlt()
public void setSrc(java.lang.String src)
public java.lang.String getSrc()
public void setValue(java.lang.String value)
public java.lang.String getValue()
? Copyright 2005-2006, Stripes Development Team.