Re: update panels inside webmarkupcontainer

2013-01-14 Thread Jochen Mader
As long as you are not holding references on your own it will be collected after a replaceWith. On deleting pages: You could use DefaultPageStore.removePage but I am not sure if that's a really good idea. Wicket is pretty good in managing what's in the store and you should rely on its behavior as

Re: update panels inside webmarkupcontainer

2013-01-12 Thread fachhoch
Plz help me understand this , as the page is stateful will it keep references to all the new MyContainer(id)? clicking on this link creates a new container everytime, if all the Mycontainer instances are gc collected not a problem but if the instances are stored it will definetly increase

Re: update panels inside webmarkupcontainer

2013-01-12 Thread Sven Meier
Hi, all components not connected to the component tree will be garbage collected - of course only if you don't collect them in a data structure by yourself: There have been people attaching a single behavior to multiple components, the behavior holding all bound components in a collection

Re: update panels inside webmarkupcontainer

2013-01-12 Thread fachhoch
Thanks for your reply, I am assuming if I use component.replacewith will the old component is replaced with the new componenet and the old is no more in the component tree so will be gc colected , sure I am not holding any references top it. second if I move out of this page to some other

Re: update panels inside webmarkupcontainer

2013-01-11 Thread Martin Grigorov
See org.apache.wicket.Component#replaceWith() On Fri, Jan 11, 2013 at 3:09 AM, fachhoch fachh...@gmail.com wrote: I have a container with two fragments these fragments are added with some conditional logic, if the condition is not satisfied I add empty panel on ajax update of this

Re: update panels inside webmarkupcontainer

2013-01-11 Thread fachhoch
I have A Container I added it to the page constructor using on ajaxrequest after the above code will the oldComponent be garbage collected as its no longer being used? -- View this message in context: