I work with Grails 2.0.1
I have such problem:
I have table with data inside the <g:form>...</g:form> tag.
Each row in the table has two links: delete and edit current row.
Here is one of them:
<a onclick="deleteDialog(${speciality?.id})" class="delBtn">
<input type="image" src="<g:createLinkTo dir="/images/ctrl" file="del.jpg"/>"/>
</a>
When I click on edit link the confirmation message have to be displayed. But when I click it form is sent to server, like I clicked on submitButton.
If link doesn’t contain an image everything works fine.
So, how can I use links with images inside?
Thanks.
Thanks much four your comments.
I have changed
<input type="image" ... />to<img .../>to fix this problem