I have some reused panels that have a custom built CollapsiblePanelHeader
component in them. I would like to save the boolean value of whether it is
collapsed or not within the Session object. I had it working for a while by
using a Map in the Session with the panel's classname as the key and the
boolean value as the value. This works mostly until you have a panel that is
reused in another page. Then it will share it's state with the other panel
of the same class.

I tried to use the getPath() method but since I am constructing my
CollapsiblePanelHeader in the constructor of the Panel, the parent of the
Panel component is null therefore I am only getting back the id of the Panel
which still causes many collisions(mainly because I have a BasePage that has
a <div wicket:id="bodyPanel"/> that gets replaced by other subclasses). 

Does anyone have any ideas of how to uniquely identify reused Panel
components? If not, is there a way that I can get the full path of the Panel
by calling getPath() from within its constructor?

Any help is greatly appreciated.

Josh
-- 
View this message in context: 
http://www.nabble.com/Saving-panel-state-tp20236203p20236203.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to