actionSubmitImage
目的 Purpose
Generates a submit button using the input type="image" with the indicated value. JavaScript event handlers can be added using the same attribute names as in HTML.使用例 Examples
<g:actionSubmitImage value="Update" action="update"
src="${resource(dir: 'images', file: 'update.gif')}" />
詳細 Description
属性 Attributes
value
- The caption of the button and name of action when not explicitly definedsrc
- The source of the image to useaction
(optional) - The name of the action to be executed
You cannot use multiple actionSubmitImage tags within the same form and have it work in Internet Explorer 6 or 7 unless you add some custom JavaScript. See this page for a bit more information and a workaround.