Re: Cloneing Wicket Objects

2012-11-26 Thread Martin Grigorov
Hi, You cannot add a component twice. A component can have just one parent. I think jQuery clone() should work, but I'm not totally sure. You can use WicketObjects#clone() method to clone any kind of Object. It uses Java Serialization to do it. Just make sure you clone it before adding the

RE: Cloneing Wicket Objects

2012-11-26 Thread Paul Bors
I stand corrected, Martin is right. We cache our SQL results hence why this is not a problem for us. ~ Thank you, Paul Bors -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, November 26, 2012 3:33 AM To: users@wicket.apache.org Subject: Re: Cloneing

RE: Cloneing Wicket Objects

2012-11-26 Thread Colin Rogers
[mailto:mgrigo...@apache.org] Sent: Monday, 26 November 2012 7:33 PM To: users@wicket.apache.org Subject: Re: Cloneing Wicket Objects Hi, You cannot add a component twice. A component can have just one parent. I think jQuery clone() should work, but I'm not totally sure. You can use WicketObjects

RE: Cloneing Wicket Objects

2012-11-25 Thread Paul Bors
Can't you crate the navigation panel once and call add() on it twice by passing the same reference to it from within your page hierarchy? On the client side I don't see why you would push this cloning to the client. Just let the page contain the same panel (html/js) via a single reference. You