I'm trying to do a delete operation but when I click on the button I expecte that the value of a g:link tag, that have the value that i need to create the object, the code can't reach it. I don't really know how to explain it properly.
<g:form controller="mensaje" action="delete" method="post">
<tr>
<td>
<g:link name="mensaje" action="editar" id="=${mensajes.id}">${mensajes.mensaje></g:link>
</td>
<td>
<g:submitButton name="enviar" value="${message(code: 'default.button.delete.confirm.message',
default:"Delete")}"></g:submitButton>
</td>
</tr>
</g:form>
I already do this but instead a link it was an input textfield and textarea. I hope someone can give me some idea to solve it