Hi,

There was a thread in may
(http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg28185.html)
about two asynchronous ajax calls. I have already the similar problem:
I want to use for example 4 AjaxLazyLoadPanel components and load
their contents asynchronous. But all ajax requests are processed in
sequence ("Channel busy - postponing..."). The Matej's answer was:

"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
takes too long you should use a worker thread and a periodical
polling."

I don't understand why pagmap is locked and I can't have two or more
request processing on the server (what is the reason of such
behaviour)? This is probably well known "synchronization in session"
problem: it solves many issues but today, when people want high
responsive "ajaxified" applications, it seems that it is a too
restrictive (?).
I think the best solution would be, when these request could be
processed simultaneously, but partial page rendering (rendering
components added to AjaxRequestTarget) can be still done in sequence.
I hope this is clear enough :).
Polling is not a very elegant and efficient solution (maybe Comet, but
not all servlet containers support this yet).

--
Daniel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to