Where is the action in a <g:submitButton>

47 views
Skip to first unread message

sergio de mattia

unread,
Nov 19, 2015, 12:18:59 PM11/19/15
to Grails Dev Discuss
I started today in studying a grails application where I have to change few thing,

I saw this tag

In a View I saw this tag

<g:submitButton name="find" class="button blue bigger" value="${message(code: 'posizione.search', default: 'Find')}" />
 
Where is the action that is triggered when I click this button "find"?

Sorry for the very noob question

sergio de mattia

unread,
Nov 19, 2015, 12:20:44 PM11/19/15
to Grails Dev Discuss
for instance in this tag

<g:actionSubmit action="generateCsv"

I found the method generateCsv() but I cannot find anything the tag named find

Mikael Andersson

unread,
Nov 21, 2015, 6:44:41 AM11/21/15
to grails-de...@googlegroups.com
Hi

When using g:submitButton it simply submits the form http://grails.github.io/grails-doc/2.4.4/ref/Tags/form.html and the form specifies the action.

Cheers

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/38712a19-6934-4f5c-846b-d65bb731a646%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages