Hi, As you have mentioned target.addComponent(comp), it seems you are using Wicket 1.4. Just so that it might be helpful to you; Wicket 1.4 is no longer supported - does not mean that you won't get answers from forum but there won't be any release for 1.4 version (I am writing this based upon online Wicket version status - so please take it as suggestion).
If I am understanding it correctly, all you want is disable two other buttons on submit of 'this' button. And as by design; Wicket needs the component to be added for ajax change via target.addComponent. Which should take effect immediately. I might be wrong in my suggestion as your scenario needs more details for better understanding. -Mihir. On Fri, Dec 4, 2015 at 3:28 PM, sorinev <sori...@gmail.com> wrote: > I have a dialog with 3 AjaxIndicatingButtons on it. When I override > onSubmit(), I can disable the 'this' component in real time > (this.setEnabled(false)), but traditionally, any other component that gets > modified has to do target.addComponent(comp) and then wait for the > onSubmit() to return in order for it to take effect. > > However, I really need to have all three buttons be disabled immediately if > *any* button is actively inside it's onSubmit() function (being re-enabled > when the function returns is ok). Is this possible? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatingButton-tp4672874.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 > >