Hi, You can use Component.getBehaviors() and the remove them with Component.remove(behavior).
But if you need to remove all behaviors then you don't really need AjaxButton. You can use WebMarkupContainer instead. On Jun 10, 2017 8:45 PM, "thewicketguy1992" <rgowli...@gmail.com> wrote: This is somewhat related to a question I posted earlier but basically I don't know where in the code some BehaviorListener is being woken up by a click event and executing onSubmit(). Is there any way i can override this when instantiating my ajaxbutton? Some kind of way to remove all BehaviorListeners from the ajax button would be optimal. -- View this message in context: http://apache-wicket.1842946. n4.nabble.com/How-to-remove-BehaviorListener-from-an-Ajax- button-tp4678017.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