Grails - Tag - actionSubmit
Tag - actionSubmit
Description
Creates a submit button 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] (required) - The name of the action to be executed.
Examples
<g:actionSubmit value="Update" />
<g:actionSubmit value="Some update label" action="Update" /> // 'Update' is action, label is 'Some update label'
<g:actionSubmit value="${message(code:'label.update')}" action="Update" /> // label derived from message bundle
<g:actionSubmit value="Delete" />
<g:actionSubmit value="DeleteAll" onclick="return confirm('Are you sure???')" />