0

ZK6: how to refresh binding

asked 2012-01-24 11:13:12 +0800

mixgho gravatar image mixgho
193 3

updated 2012-01-30 09:30:39 +0800

Is there a way to force reloading of the all bindings? Something like new AnnotateDataBinder().loadAll(self); in the previous version? When I receive Event via EventQueue I don't know how to refresh bindings.

Why doAfterCompose is not executed if I use

<window apply="org.zkoss.bind.BindComposer" viewModel="@id('c') @init('zk.Composer')" ></window>

and
public class Composer extends BindComposer<Window> {
	private Window self;
	@Override
	public void doAfterCompose(Window comp) throws Exception {
		super.doAfterCompose(comp);
		self = comp;
	}
}

If self is not created, I cannot target the Composer with Events.postEvent() from other Composers!
Is there a way to send Events between Composers with new Annotation Binding?

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2012-01-24 11:13:12 +0800

Seen: 364 times

Last updated: Jan 24 '12

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