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
much as possible.


On Sun, Jan 13, 2013 at 12:41 AM, fachhoch fachh...@gmail.com wrote:
 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 page   can i delete all
 version of this page from pagemap ?
 if so please tell me how .



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/update-panels-inside-webmarkupcontainer-tp4655279p4655319.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 session size , I am trying to reduce 
session size and not to increase it with unnessary  objects.
Please advice me.







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/update-panels-inside-webmarkupcontainer-tp4655279p4655316.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 
... go figure :/.


Sven

On 01/12/2013 02:31 PM, fachhoch wrote:

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 session size , I am trying to reduce
session size and not to increase it with unnessary  objects.
Please advice me.







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/update-panels-inside-webmarkupcontainer-tp4655279p4655316.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 page   can i delete all
version of this page from pagemap ?
if so please tell me how .



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/update-panels-inside-webmarkupcontainer-tp4655279p4655319.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 container I wan to call the logic again and add
 the
 right component either fragment or empty panel please advice how to?
 I can do this with a list view repaint will recreate the list view , but is
 there any other way ?




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/update-panels-inside-webmarkupcontainer-tp4655279.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


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: 
http://apache-wicket.1842946.n4.nabble.com/update-panels-inside-webmarkupcontainer-tp4655279p4655290.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org