You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Martin Benda <be...@bendis.cz> on 2006/11/27 11:02:41 UTC

AJAX, models and detaching

Hi,

models which are attached during the processing of an AJAX request are not 
detached at the end of the request. All components which are re-rendered in 
the response to the AJAX request are correctly detached (internalDetach()) at 
the end of the request, but associated models are not - the method 
Component#detachModels is called from Page#internalOnDetach - so the models 
would detach only if the whole page is re-rendered...

Is this the correct behavior?

Shouldn't the method Component#detachModels be called directly from 
Component#internalDetach?

Regards,
Bendis