Skip to content

Instantly share code, notes, and snippets.

@jumperchen
Created April 28, 2011 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jumperchen/945770 to your computer and use it in GitHub Desktop.
Save jumperchen/945770 to your computer and use it in GitHub Desktop.
<window>
<include id="inc" src="test2.zul" />
<button label="change"
onClick='self.previousSibling.src = "/hello.zul"' />
<button label="remove" onClick="inc.detach()" />
</window>
<window>
<div apply="TestComposer" />
<button label="remove" onClick="self.previousSibling.detach()" />
</window>
public class TestComposer extends GenericForwardComposer {
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
System.out.println("Init");
}
protected void finalize() throws Throwable {
super.finalize();
System.out.println("Finalize");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment