"Fossies" - the Fresh Open Source Software Archive

Member "grails-core-6.0.0/grails-docs/src/test/resources/docs/ref/Tags/actionSubmitImage.html" (24 Jul 2023, 59949 Bytes) of package /linux/www/grails-core-6.0.0.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the grails-core-6.0.0.tar.gz project site itself.

(Quick Reference)



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.


<g:actionSubmitImage value="Update" action="update"
                     src="${resource(dir: 'images', file: 'update.gif')}" />



  • value - The caption of the button and name of action when not explicitly defined

  • src - The source of the image to use

  • action (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.