Grails populating a domain instance

前端 未结 2 1266
攒了一身酷
攒了一身酷 2021-01-26 02:33

I have been stuck for a couple of days on the same problem and I am not getting anywhere.

I am using a g:formRemote tag to update a messages template

<         


        
相关标签:
2条回答
  • 2021-01-26 03:03

    You can add params to <g:formRemote>

    Example from the grails docs:

    <g:formRemote name="myForm" update="updateMe"
                  url="[controller: 'book', action: 'byAuthor', params: [sort: 'title', order: 'desc']]">
        Author: <input name="author" type="text" />
    </g:formRemote>
    
    0 讨论(0)
  • 2021-01-26 03:09

    You could probably add a <g:hiddenField name="childId" value="${childInstance.id}"/> to your formRemote Tag and this will send it to the server in the same way message is.

    0 讨论(0)
提交回复
热议问题