How to store detached ZUL objects?

asked 2008-12-07 06:43:36 +0800

Vic gravatar image Vic

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();

2nd step. In other Executions.activate(_desktop) in 5 min. I need to attach storedDiv.
For example:

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?


delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-12-07 13:56:25 +0800

Vic gravatar image Vic

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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2008-12-07 06:43:36 +0800

Seen: 160 times

Last updated: Dec 07 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More