I have this problem!
a4j commandbutton .. onclick="return confirmDelete();" action="#{mybackbean.del}" BUT, when the return from method onclick return TRUE the form will submit and i dont will have AJAX!
exists an alternative to confirm function in ajax that dont submit all form to do there verify ?
thanks
So resolved my problem:
Include on your own component the following:
<a4j:support event="onclick" reRender="myDataDatable" onsubmit="if(!confirm('Delete?')) {form.reset(); return false;}" />