If understand your problem correctly, the solution might be just to create it as an AjaxButton & override the onSubmit & onError methods. We do that in our app & works great.
"RAM /abr./: Rarely Adequate Memory." From: chimaira <death_style2...@hotmail.com> To: users@wicket.apache.org Date: 01/23/2012 05:53 PM Subject: AjaxSubmitLink : Simple attribute modifier (confirm javascript popup) never calld , form not submited Hello , sorry for my english ! I m facing a probleme with AjaxSubmitLink on a form compoenent I want to add a simple attribute modifier with a on click and a confirm javascript popup, to get to user confirmation befor submiting. That works fine with a simple wicket button , but I want to use AjaxSubmitLink that way I can overrid the OnError methode and refresh my form feedback, so I create I class AjaxConfirmButton extends AjaxSubmitLink. and in the constructor I add the behaviour (add( new SimpleAttributeModifier('onclick', "return confirm(...)"). the probleme is the on click javascript is never calld and the form is never submited. is there a way to fix this issue? hanks a lot -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxSubmitLink-Simple-attribute-modifier-confirm-javascript-popup-never-calld-form-not-submited-tp4322492p4322492.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **