actionSubmit

Purpose

Creates a submit button with the indicated value. Javascript event handlers can be added using the same parameter names as in HTML.

Examples

<g:actionSubmit value="Update" />
<!--'Update' is action, label is 'Some update label'-->
<g:actionSubmit value="Some update label" action="Update" /> 
<!--label derived from message bundle-->
<g:actionSubmit value="${message(code:'label.update')}" action="Update" /> 
<g:actionSubmit value="Delete" />
<g:actionSubmit value="DeleteAll" onclick="return confirm('Are you sure???')" />

Description

Attributes

Source

Show Source