ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ZK6: how to refresh binding

mixgho
24 Jan 2012 11:13:12 GMT
24 Jan 2012 11:13:12 GMT

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?