Grails - Tag - actionSubmitImage
Tag - actionSubmitImage
Description
Creates a submit button using the input type="image" with the indicated value. Javascript event handlers can be added using the same parameter names as in HTML.
Parameters
- value (required) - The title of the button and name of action when not explicitly defined.
- action [since 0.5] (optional) - The name of the action to be executed.
- src - The source of the image to use.
Note that you cannot use multiple actionSubmitImage tags on the same form and have it work in MS IE without adding some custom JavaScript. MS IE6 and IE7 do not send the value attribute to the server when submitting, so the "action" attribute on this tag is not useful to you unless targetting non-IE users or adding custom Javascript.Info about this bug
Examples
<g:actionSubmitImage value="Update" src="/images/update.gif"/>
<g:actionSubmitImage value="Some update label" action="Update" src="/images/update.gif"/>