As requested by one of my customers I added two small modifications to the roo standard mvc-jsp-addon which I'd like to share.
a) a HTTP DELETE is triggered
b) a page containing an entity form is left other than via a submit button (e.g. by clicking on a link or closing the browser)
it's this block in default.jspx:
and also I had to modify org.springframework.roo.addon.mvc.jsp.JspDocumentHelper and add the following line
and the following line is added to org.springframework.roo.addon.mvc.jsp.JspDocumentHelper.getCreateDocument() and
Of course this approach could be enhanced by introducing <spring:message/> to make the messages translatable but that wasn't required - until now.
I'm looking forward on your comments on this approach and would be glad to see this functionality integrated into the official roo release.