[Wicket-user] [Question] Asynchronous Ajax

2007-05-17 Thread Alex Objelean
I've noticed that having two components with AjaxEventBehavior attached to each of them, trigger a synchronous ajax call: Button b1 = new Button(b1); b1.add(new AjaxEventBehavior(onclick) { protected void onEvent(final AjaxRequestTarget target) { doSomethingSlow1(); } });

Re: [Wicket-user] [Question] Asynchronous Ajax

2007-05-17 Thread Matej Knopp
You can't. The requests are asynchronous (they don't block request), but they are scheduled in channel so one request waits until the previous one finishes. Problem is that the pagemap is locked, so you can't have two requests running on parallel on the same pagemap. If you have operation that

Re: [Wicket-user] [Question] Asynchronous Ajax

2007-05-17 Thread Alex Objelean
Matej, thank you for your answer! I am using Button just because I forgot about AjaxLink :)... anyway, it has exactly the same effect, isn't it? Matej Knopp-2 wrote: You can't. The requests are asynchronous (they don't block request), but they are scheduled in channel so one request waits