asked
2014-08-21 10:52:04 +0800
AAdel 3 ● 1 Dear All
I am new to ZK.
I have a toolbar zul file that contains a definition for a toolbar, this toolbar is used in different windows, and I want to capture the events fired from this toolbar in each window controller.
When I add an Include component for the window and call the setSrc() function with argument tollbar.zul, and then try to reach the childrens of the Include component, I get empty array
My code is like
public class MyComposer extends SelectorComposer<component> {
public void addToolbar(Window win){
Include incl=new Include();
incl.setId("myToolbar");
incl.setSrc("toolbar.zul");
incl.setParent(win);
for (Component c : incl.getChildren())
{
// This code is never reached as the getChildren() always return empty list
}
}
}
Please, help