//Through remote link calling
<g:remoteLink controller="Holidays" action="deleteHoliday" params='[date:"${formatDate(format:"yyyy-MM-dd", date:holiday.date)}",id:"${holiday.id}"]' onSuccess="deleteResult(data,'${holiday.id}')" onFailure="reload()">Delete</g:remoteLink>
<g:remoteLink controller="Holidays" action="deleteHoliday" params='[date:"${formatDate(format:"yyyy-MM-dd", date:holiday.date)}",id:"${holiday.id}"]' onSuccess="deleteResult(data,'${holiday.id}')" onFailure="reload()">Delete</g:remoteLink>
No comments:
Post a Comment