0

How to rerender widget when a parent widget rerenders?

asked 2010-12-21 13:36:06 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

updated 2010-12-21 13:36:45 +0800

Hi,

I've just detected a small problem with my ZK-Codemirror component. If it is used within a window and the window title is changed, the component is not properly redrawn... it just disappears.

As far as I can see changing the window title calls the following function within web/js/zul/wnd/Window.js to rerender the window:

_updateDomOuter: function () {
...
		this.rerender(this._skipper);
...
}

If this happens, I need some means to rerender the zk-codemirror component from scratch. Has anyone an idea how to achieve this?

Thx, Maik

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-12-22 16:24:24 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Kudos to Jimmy who pointed me to listen for onRestore. Works like a charm...:-)

 
 bind_ : function() {
        this.$supers('bind_', arguments);
        ..........
        zWatch.listen({onRestore : this});        
    },
    
    unbind_ : function() {
         .........
        zWatch.unlisten({onRestore : this});
        this.$supers('unbind_', arguments);
    },

    onRestore: function () {
        //trigger when parent rerender
    },

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

Follow

RSS

Stats

Asked: 2010-12-21 13:36:06 +0800

Seen: 246 times

Last updated: Dec 22 '10

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