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
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
[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
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