Hi:

I would like to build a @DirectLink which made the request in an
asynchronous way but request the client with a javascript confirmation
dialog before the AJAX request. I have tried to make something like:

<a jwcid="@DirectLink" listener="listener:doDeleteMedium"
         parameters="ognl:medium.id"
         async="ognl:true"
         updateComponents="mediumList"
         onclick="javascript:return window.confirm('Está seguro que
desea borrar este medio?');"><span key="delete"/></a>

But it didn't work. Even if I click on "OK" or "Cancel" the AJAX action
takes place.

Some help please?

Thanks,
Abel.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to