Stripes Tag Library
Tag image


Tag that generates an image input 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 the plain HTML tag. 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.



Tag Information
Tag Classnet.sourceforge.stripes.tag.InputImageTag
TagExtraInfo ClassNone
Body Contentempty
Display Nameimage

Attributes
NameRequiredRequest-timeTypeDescription
nametruetruejava.lang.StringThe name of the form field.
valuefalsetruejava.lang.StringA symbolic value that will get submitted to the server when the image button is clicked. (HTML Pass-through)
alignfalsetruejava.lang.StringDefines the alignment of text following the image. Deprecated, use style instead. (HTML Pass-through)
altfalsetruejava.lang.String The alternative text for the image button. Used only if a localized value cannot be found as described in the in the tag description. (HTML Pass-through)
disabledfalsetruejava.lang.StringDisables the input element when it first loads so that the user can not write text in it, or select it. (HTML Pass-through)
srcfalsetruejava.lang.String The src URL for the image button. If the value starts with a slash it will have the context path prepended. Used only if a localized value cannot be found as described in the tag description. (HTML Pass-through)
accesskeyfalsetruejava.lang.StringKeyboard shortcut to access the element. (HTML Pass-through)
classfalsetruejava.lang.StringThe CSS class to be applied to the element. (HTML Pass-through)
dirfalsetruejava.lang.StringText direction. (HTML Pass-through)
idfalsetruejava.lang.StringA unique identifier for the HTML tag on the page. (HTML Pass-through)
langfalsetruejava.lang.StringThe language code of the element. (HTML Pass-through)
onblurfalsetruejava.lang.StringScripting code run when the element loses focus. (HTML Pass-through)
onchangefalsetruejava.lang.StringScripting code run when the element changes. (HTML Pass-through)
onclickfalsetruejava.lang.StringScripting code run on each mouse click. (HTML Pass-through)
ondblclickfalsetruejava.lang.StringScripting code run on a double-click of the mouse. (HTML Pass-through)
onfocusfalsetruejava.lang.StringScripting code run when the element acquires focus. (HTML Pass-through)
onkeydownfalsetruejava.lang.StringScripting code run when a key is depressed. (HTML Pass-through)
onkeypressfalsetruejava.lang.StringScripting code run when a key is pressed and released. (HTML Pass-through)
onkeyupfalsetruejava.lang.StringScripting code run when a key is released. (HTML Pass-through)
onmousedownfalsetruejava.lang.StringScripting code run when a mouse button is depressed. (HTML Pass-through)
onmousemovefalsetruejava.lang.StringScripting code run when the mouse pointer is moved. (HTML Pass-through)
onmouseoutfalsetruejava.lang.StringScripting code run when the mouse pointer moves out of the element. (HTML Pass-through)
onmouseoverfalsetruejava.lang.StringScripting code run when the mouse pointer moves over the element. (HTML Pass-through)
onmouseupfalsetruejava.lang.StringScripting code run when a mouse button is released. (HTML Pass-through)
onselectfalsetruejava.lang.StringScripting code run when an element is selected. (HTML Pass-through)
stylefalsetruejava.lang.StringInline CSS style fragment that applies to the element (HTML Pass-through)
tabindexfalsetruejava.lang.StringThe tab order of the element. (HTML Pass-through)
titlefalsetruejava.lang.StringTool-tip text for the element. (HTML Pass-through)

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.