You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vladimir Kovalyuk <ko...@gmail.com> on 2010/08/25 09:25:05 UTC

AjaxRequestTarget.addComponent does not work after RequestCycle.setResponsePage was called

Once setResponsePage is called the AjaxRequestTarget is pushed down in the
list of request targets and AjaxRequestTarget won't be called anymore
because AbstractRequestCycleProcessor.respond invokes the current request
target only.

My page has some ajax links that delegates handling to different module and
link does not know whether redirect happens. The link still has to update
some components. But in case of redirect all the updates aren't applied and
backbuttoning shows old state (actually with ajax indicator covering all the
page so any element is not clickable).

I believe it makes sence to defer switching to different request target
until finishing responding on ajax request.
https://issues.apache.org/jira/browse/WICKET-3010