-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How to store ZUL objects between events or desctop activations?
1st step. In first Executions.activate(_desktop): I make detach storedDiv;
For example:
Div storedDiv=parentComp.getFirstChild();
storedDiv.detach();
2nd step. In other Executions.activate(_desktop) in 5 min. I need to attach storedDiv.
For example:
parentComp.appendChild(storedDiv);
I know one way to store it via serialization. But it is not so simple and fast.
Do you have other ideas how to store detached zul oblect in memory?
Thanks.
I am sorry, it was my mistake.
All work perfect.
My storedDiv setup inside of layout component of borderlayout, and after detach() layout get size=0 but after appendChild() size of layout dont increased. So I dont see my appended storedDiv :)
This way I can store and restore any ZUL component between desctop activations. But i have to stup size of layout manually.
Sorry for this thread.
Asked: 2008-12-07 06:43:36 +0800
Seen: 160 times
Last updated: Dec 07 '08