IAjaxCallListener getPrecondition

2013-04-22 Thread Steve Lowery
I am aware of the getPrecondition() method on IAjaxCallListener that I can use to prevent the ajax call from happening on the click of a link, button, etc, but I'm wondering if anything in the wicket framework can prevent the default altogether. Let me try to explain with an example of my use

Re: IAjaxCallListener getPrecondition

2013-04-22 Thread Martin Grigorov
Hi, I guess your AjaxFormChoiceComponentUpdatingBehavior listens on click event. You can listen to mousedown and do attrs.event.preventDefault() when the user cancels the action. With click the action at the client side is already executed and unless you keep track of the selections or ask the